pushing to remote branch with different name

08-09-21

%

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

- [ git]

all snippets