我创建了一个新的目录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