Skip to content

Instantly share code, notes, and snippets.

@twoism
Created September 7, 2012 04:13
Show Gist options
  • Save twoism/3663075 to your computer and use it in GitHub Desktop.
Save twoism/3663075 to your computer and use it in GitHub Desktop.
git config --global alias.pushb "\!BRANCH=\$(git symbolic-ref HEAD 2>/dev/null | cut -d/ -f 3) && git push origin \$BRANCH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment