2023-05-12 开启多语言插件支持……

git pull 报错 提示you must specify a branch on the command line

git 苏 demo 8657℃

背景描述:

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

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (9)or分享 (0)