【发布时间】:2015-04-02 17:56:06
【问题描述】:
我在远程有 2 个名为 developer 和 Current 的分支。在本地,我正在处理分支developer,并将我的更改推送到远程developer。问题是,如何从本地 developer 推送到远程 Current?
我试过这些:
git push origin Current -f
// error:
// src refspec Current does not match any.
// failed to push some refs to ...
// and this one too:
git config push.default upstream
git push origin Current -f
// error: same as the first try
// and this one too:
git branch --set-upstream-to developer origin/Current
// or:
git branch --set-upstream-to developer Current
// error: fatal: branch 'Current' (or 'origin/Current') does not exist
【问题讨论】:
-
git branch (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]- 你的语法搞砸了。
标签: git branch git-branch remote-branch