在使用 Git GUI 检出远程分支 releases/rel_5.4.1
之后,当我尝试 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
发生什么事了?