Skip to content

Instantly share code, notes, and snippets.

@weslley39
Created March 29, 2019 11:50
Show Gist options
  • Save weslley39/1f22a30368a7051ab9d10c800711af08 to your computer and use it in GitHub Desktop.
Save weslley39/1f22a30368a7051ab9d10c800711af08 to your computer and use it in GitHub Desktop.
Pushing to a different branch
If you want to push to the same remote but a different branch. Use the following syntax;
git push <branch with new changes>:<branch you are pushing to>
For example:
git push origin dev:master
This pushses local dev branch to origin master branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment