使用 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
到底是怎么回事?