Last Updated: April 22, 2016
·
223
· dhdutoit

Short aliases for GIT PULL- and PUSH

For those who tire of commands like $git pull origin feature/branch-name one could use aliases which use the checked out branch by default. (examples assume REMOTE is being referred to as origin)

alias gpl='git pull origin $(git name-rev --name-only HEAD)'
alias gps='git push origin $(git name-rev --name-only HEAD)'