背景描述:
git切换到zhuanti 分支,进行代码pull的时候 提示报错;
在图形界面中,执行拉取操作时,出现下面的错误。
错误提示:
You asked to pull from the remote ‘origin’, but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line
解决办法:
切换目录到项目根目录,找到.git/config 文件,然后vim 打开
[branch “zhuanti”]
remote = origin
merge = refs/heads/zhuanti
即可解决。
转载请注明:苏demo的别样人生 » git pull 报错 提示you must specify a branch on the command line