Created
May 10, 2012 04:22
-
-
Save justinfrench/2651020 to your computer and use it in GitHub Desktop.
git aliases for tracking and publishing branches
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] | |
current-branch = !git branch | grep '^*' | sed s/\\*\\ // | |
track = !git branch --set-upstream $(git current-branch) origin/$(git current-branch) | |
publish = !git push origin $(git current-branch) && echo $(git track) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment