ggpull now updates the current branch's remote tracking branch as well as the current branch

This commit is contained in:
Matt Reishus 2011-09-01 16:14:33 -05:00
commit 53afac789e

View file

@ -50,9 +50,9 @@ function current_branch() {
}
# these aliases take advantage of the previous function
alias ggpull='git pull origin $(current_branch)'
alias ggpull='git pull origin refs/heads/$(current_branch):refs/remotes/origin/$(current_branch)'
compdef ggpull=git
alias ggpush='git push origin $(current_branch)'
compdef ggpush=git
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias ggpnp='git pull origin refs/heads/$(current_branch):refs/remotes/origin/$(current_branch) && git push origin $(current_branch)'
compdef ggpnp=git