2016-12-15 18:22:59 -08:00
|
|
|
is-callable hub && alias git='hub'
|
2017-04-26 17:49:12 -07:00
|
|
|
|
|
|
|
# g = git status
|
|
|
|
# g ... = git $@
|
2016-12-15 18:22:59 -08:00
|
|
|
g() { [[ $# = 0 ]] && git status --short . || git $*; }
|
|
|
|
compdef g=hub
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
alias gbr='git browse'
|
|
|
|
alias gi='git init'
|
2017-05-15 11:42:17 -07:00
|
|
|
alias gf='git fetch'
|
|
|
|
alias gs='git status'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gst='git stash'
|
|
|
|
alias gstp='git stash pop'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gsu='git submodule'
|
2017-05-15 11:42:17 -07:00
|
|
|
alias grb='git rebase --autostash -i'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gco='git checkout'
|
|
|
|
alias gcoo='git checkout --'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gc='git commit -S'
|
|
|
|
alias gcm='noglob git commit -S -m'
|
|
|
|
alias gcma='noglob git commit --amend -S -m'
|
|
|
|
alias gcf='noglob git commit -S --fixup'
|
|
|
|
alias gC='git commit'
|
|
|
|
alias gCm='noglob git commit -m'
|
|
|
|
alias gCma='noglob git commit --amend -m'
|
|
|
|
alias gCf='noglob git commit --fixup'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gcl='git clone'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gcp='git cherry-pick -S'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gd='git diff'
|
|
|
|
alias gp='git push'
|
|
|
|
alias gpb='git push origin'
|
|
|
|
alias gpt='git push --follow-tags'
|
2017-04-26 17:49:12 -07:00
|
|
|
alias gpl='git pull --rebase --autostash'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias ga='git add'
|
|
|
|
alias gau='git add -u'
|
|
|
|
alias gb='git branch'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gbo'git orphan'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gbd='git branch -D'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gbl='git blame'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gap='git add --patch'
|
|
|
|
alias gr='git reset HEAD'
|
|
|
|
alias gt='git tag'
|
|
|
|
alias gtd='git tag -d'
|
|
|
|
alias gta='git tag -a'
|
2017-06-08 06:06:20 -07:00
|
|
|
alias gl='git log --oneline --decorate --graph'
|
|
|
|
alias gls='git log --oneline --decorate --graph --stat'
|
2016-10-19 07:56:37 -07:00
|
|
|
|