我創建了一個新的目錄c:\ Src,我在其中克隆了一個存儲庫。克隆後,我得到以下git clone - 本地更改後無法進行pull或push
$ git branch
* Search
$ git branch -a
* Search
remotes/origin/master
remotes/origin/prototype
如果我再試試
$ git checkout -b master origin/master
返回
error: You have local changes to '<some_file>'; cannot switch branches
拉給出了同樣的錯誤。
我沒有做任何改變,我很困惑爲什麼它不使用主分支作爲默認值?
「git config -l」顯示什麼? – ebneter 2011-01-07 03:16:52