Skip to content

Instantly share code, notes, and snippets.

@rjmccluskey
Last active July 13, 2016 19:03
Show Gist options
  • Save rjmccluskey/8778dda0c7b7757d9425768a76fa996b to your computer and use it in GitHub Desktop.
Save rjmccluskey/8778dda0c7b7757d9425768a76fa996b to your computer and use it in GitHub Desktop.
Git alias for initial push of a new branch. Add this to your .gitconfig and simply enter "git psu" in your command prompt (psu stands for "push set upstream")
[alias]
psu = !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