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
|
|
|
|
2017-12-05 22:39:10 -08:00
|
|
|
if _is_callable hub; then
|
|
|
|
alias git='noglob hub'
|
|
|
|
else
|
|
|
|
alias git='noglob git'
|
|
|
|
fi
|
|
|
|
|
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'
|
2017-06-12 06:17:35 -07:00
|
|
|
alias gsp='git stash pop'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gsu='git submodule'
|
2017-06-12 06:17:35 -07:00
|
|
|
alias grb='git rebase -S --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'
|
2017-12-05 22:39:10 -08:00
|
|
|
alias gca='noglob git commit -S -am'
|
2017-06-08 06:06:20 -07:00
|
|
|
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'
|
2017-06-24 08:31:09 -07:00
|
|
|
alias gCm='git commit -m'
|
|
|
|
alias gCma='git commit --amend -m'
|
|
|
|
alias gCf='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'
|
2017-06-24 08:31:44 -07:00
|
|
|
alias grp='git rev-parse'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias gpb='git push origin'
|
|
|
|
alias gpt='git push --follow-tags'
|
2017-07-17 12:00:07 -07:00
|
|
|
alias gpl='git pull --rebase -S --autostash'
|
2016-10-19 07:56:37 -07:00
|
|
|
alias ga='git add'
|
|
|
|
alias gau='git add -u'
|
|
|
|
alias gb='git branch'
|
2018-05-30 18:50:00 -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'
|
2018-03-12 21:37:48 -07:00
|
|
|
alias gt='git tag --sort=v:refname'
|
|
|
|
alias gtd='gt -d'
|
|
|
|
alias gta='gt -a'
|
2017-06-28 09:18:10 -07:00
|
|
|
alias gl='git log --graph --pretty="format:%C(yellow)%h%Creset %C(red)%G?%Creset%C(green)%d%Creset %s %Cblue(%cr) %C(bold blue)<%aN>%Creset"'
|
2017-12-05 22:39:10 -08:00
|
|
|
alias gll='git log --pretty="format:%C(yellow)%h%Creset %C(red)%G?%Creset%C(green)%d%Creset %s %Cblue(%cr) %C(bold blue)<%aN>%Creset"'
|
2017-06-30 06:23:21 -07:00
|
|
|
alias gL='gl --stat'
|