Skip to content

Instantly share code, notes, and snippets.

@bergmeister
Last active December 13, 2017 23:50
Show Gist options
  • Save bergmeister/9ce266a99841728c28fba8fb8023fc2b to your computer and use it in GitHub Desktop.
Save bergmeister/9ce266a99841728c28fba8fb8023fc2b to your computer and use it in GitHub Desktop.
Everytime one wants to push a new branch to the remote, one has to set the upstream and git even tells us how to. This helper pushes it and automatically set the upstream.
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