releases/rel_5.4.1
使用Git GUI对远程分支进行签出后,尝试执行push
以下操作时,我看到此意外错误消息:
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:releases/rel_5.4.1
To push to the branch of the same name on the remote, use
git push origin rel_5.4.1
我不知道Git在说什么。我可能要推送到,origin releases/rel_5.4.1
因为那是我签出的分支。所以这两种选择对我来说似乎都不正确。
git status
说我在树枝上rel_5.4.1
。
这是出现在我的分支.git/config
:
[branch "rel_5.4.1"]
remote = origin
merge = refs/heads/releases/rel_5.4.1
到底是怎么回事?