Skip to content

Instantly share code, notes, and snippets.

@rolka
Created March 7, 2014 07:56
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rolka/9407277 to your computer and use it in GitHub Desktop.
Save rolka/9407277 to your computer and use it in GitHub Desktop.
Git: push new local branch to remote
git push -u origin newLocalBranch
@grav
Copy link

grav commented Apr 30, 2018

Get local branch name:

git push -u origin `git rev-parse --abbrev-ref HEAD`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment