Skip to content

Instantly share code, notes, and snippets.

@atheken
Created March 2, 2017 20:44
Show Gist options
  • 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