使用Git GUI檢出遠程分支releases/rel_5.4.1
後,當我嘗試push
:fatal:您當前分支的上游分支與當前分支的名稱不匹配
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
,因爲那是我檢查出來的分支。所以這兩個選項對我來說似乎都不正確我的分支rel_5.4.1
。
這裏是分支,因爲它出現在我的.git/config
:
[branch "rel_5.4.1"]
remote = origin
merge = refs/heads/releases/rel_5.4.1
這是怎麼回事?
你使用的是什麼版本的git(也是什麼平臺)? – R0MANARMY