mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
ggpull now updates the current branch's remote tracking branch as well as the current branch
This commit is contained in:
parent
762b55bb2b
commit
53afac789e
1 changed files with 2 additions and 2 deletions
|
|
@ -50,9 +50,9 @@ function current_branch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# these aliases take advantage of the previous function
|
# 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
|
compdef ggpull=git
|
||||||
alias ggpush='git push origin $(current_branch)'
|
alias ggpush='git push origin $(current_branch)'
|
||||||
compdef ggpush=git
|
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
|
compdef ggpnp=git
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue