我有 2 个名为developer
和Current
远程的分支。在本地,我正在处理分支developer
,并将我的更改推送到 remote 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