How can I push a branch to a different repo with a new name for the branch.
For instance I have a branch feature1
on repo abc
and I\'d like
I think this should work:
git push xyz feature1:master
If master already exists, you can clobber it with -f/--force
, or +
:
git push -f xyz feature1:master
git push xyz +feature1:master
From the man page (in the examples section at the end):
git push origin +dev:master Update the origin repository’s master branch with the dev branch, allowing non-fast-forward updates. [...]