Skip to content

Instantly share code, notes, and snippets.

@jsutlovic
jsutlovic / gist:3702489
Created September 11, 2012 22:08
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)'