Skip to content

Instantly share code, notes, and snippets.

@atheken
Created March 2, 2017 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atheken/d9cf32750d97c94e5a58b17ea45e8048 to your computer and use it in GitHub Desktop.
Save atheken/d9cf32750d97c94e5a58b17ea45e8048 to your computer and use it in GitHub Desktop.
Set the upstream branch to the same as the current for git.
git config --global alias.up '! git branch -u origin/$(git symbolic-ref --short HEAD)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment