I have 2 branches named developer
and Current
on remote. In local I'm working on branch developer
and I push my changes to remote developer
. The question is, how can I push from local developer
to remote Current
?
I have tried these:
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>]
- your syntax is screwed up. – Sesterce