我爲我的代碼使用git。 在我的本地回購我有一個刪除一個大文件夾,並承諾(git push)來回購,之後,我登錄到服務器並完成git pull,但我得到了以下信息 .....
.....
* branch master -> FETCH_HEAD
Updating 12hgb51..e27d363
error: The following untracked working tree
當我試圖用「git pull」拉我的git存儲庫時,它始終告訴我我有本地更改,儘管我沒有觸及任何提到的文件。有人可以解釋這種行爲並知道解決方案嗎? git的狀態: # On branch master
# Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
# (use "git pull"
我得到這個突然的錯誤,當我嘗試拉從庫中的變化: git pull
fatal: http://guthub.com/msalsas/BunchOfColors/info/refs not valid: is this a git repository?
似乎是一個錯字(「guthub」),因爲如果我這樣做: git pull http://github.com/msalsas/BunchOf
我試圖做一個git pull和我得到error: Your local changes to 'someDir/someFile' would be overwritten by merge. Aborting.這是罰款,因爲我需要檢查這些變化,並決定是否這些都需要提交或不。 但是做上述,檢查文件和提交/回滾是費力的,如果我每次都這樣做。有沒有一種方法可以讓我得到git pull列出每次都合併錯誤