snippets/old_snippets/pushing-to-remote-branch-with-different-name.md

405 B

title date draft snippet_types
pushing to remote branch with different name 2021-09-08T13:02:41+02:00 false
git

Some times you rename a branch locally and want to push it to a remote branch with a different name. This is how:

$ git push -u origin localBranch:remoteBranch

source: stack-overflow