mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Adding a rebase option to git alias.
This commit is contained in:
parent
612b53babe
commit
8d51ff0417
1 changed files with 2 additions and 0 deletions
|
|
@ -109,6 +109,8 @@ function current_repository() {
|
|||
# these aliases take advantage of the previous function
|
||||
alias ggpull='git pull origin $(current_branch)'
|
||||
compdef ggpull=git
|
||||
alias ggpur='git pull --rebase origin $(current_branch)'
|
||||
compdef ggpur=git
|
||||
alias ggpush='git push origin $(current_branch)'
|
||||
compdef ggpush=git
|
||||
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue