Created
September 11, 2012 22:08
-
-
Save jsutlovic/3702489 to your computer and use it in GitHub Desktop.
Git aliases for pull/push current branch
This file contains hidden or 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 _git_current_branch="git rev-parse --abbrev-ref HEAD" | |
alias pull='git pull origin $(_git_current_branch)' | |
alias push='git push origin $(_git_current_branch)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment