Created
December 9, 2017 16:55
-
-
Save bergmeister/892243f557fa3a79995920d9e187e5c8 to your computer and use it in GitHub Desktop.
Push a new git branch and automatically set the 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
# Pushes a new branch and automatically sets the upstream | |
function Push-It | |
{ | |
$branch = git rev-parse --abbrev-ref HEAD | |
git push --set-upstream origin $branch | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment