我的同事有一个存储库并在做:
$ git remote show origin
输出:
* remote origin
...
Remote branches:
...
DowSzkDoZgl tracked
IR-Prod tracked
...
Local branches configured for 'git pull':
DowSzkDoZgl merges with remote origin/DowSzkDoZgl
IR-Prod merges with remote IR-Prod
...
Local refs configured for 'git push':
DowSzkDoZgl pushes to DowSzkDoZgl (up to date)
IR-Prod pushes to IR-Prod (local out of date)
...
上线后出现异常 Local branches configured for 'git pull':
DowSzkDoZgl merges with remote origin/DowSzkDoZgl
具体来说,origin/DowSzkDoZgl
。
为什么它在远程分支名称前面指定origin/ ?其他 Pull Config 分支都没有这个,而且我们已经在原点“内部”,所以它看起来是多余的。
编辑
git 配置:
[branch "DowSzkDoZgl"]
remote = origin
merge = refs/heads/origin/DowSzkDoZgl
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*