Skip to content

Instantly share code, notes, and snippets.

@jsutlovic
Created September 11, 2012 22:08
Show Gist options
  • Save jsutlovic/3702489 to your computer and use it in GitHub Desktop.
Save jsutlovic/3702489 to your computer and use it in GitHub Desktop.
Git aliases for pull/push current branch
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