Last active
July 13, 2016 19:03
-
-
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")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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