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)'
Written by David du Toit
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#