vcs/+git: add --rebase --autostash to pull/rebase aliases
This commit is contained in:
parent
1b24fa4503
commit
7fb8491be7
|
@ -1,4 +1,7 @@
|
||||||
is-callable hub && alias git='hub'
|
is-callable hub && alias git='hub'
|
||||||
|
|
||||||
|
# g = git status
|
||||||
|
# g ... = git $@
|
||||||
g() { [[ $# = 0 ]] && git status --short . || git $*; }
|
g() { [[ $# = 0 ]] && git status --short . || git $*; }
|
||||||
compdef g=hub
|
compdef g=hub
|
||||||
|
|
||||||
|
@ -6,7 +9,7 @@ alias gbr='git browse'
|
||||||
alias gi='git init'
|
alias gi='git init'
|
||||||
alias gs='git status --short'
|
alias gs='git status --short'
|
||||||
alias gsu='git submodule'
|
alias gsu='git submodule'
|
||||||
alias gsq='git rebase -i origin/master'
|
alias greb='git rebase --autostash -i origin/master'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
alias gcoo='git checkout --'
|
alias gcoo='git checkout --'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
|
@ -18,7 +21,7 @@ alias gd='git diff'
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
alias gpb='git push origin'
|
alias gpb='git push origin'
|
||||||
alias gpt='git push --follow-tags'
|
alias gpt='git push --follow-tags'
|
||||||
alias gpl='git pull'
|
alias gpl='git pull --rebase --autostash'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gau='git add -u'
|
alias gau='git add -u'
|
||||||
alias gb='git branch'
|
alias gb='git branch'
|
||||||
|
|
Loading…
Reference in a new issue