2019-08-06 10:56:54 -07:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
g() { [[ $# = 0 ]] && git status --short . || git $*; }
|
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
alias git='noglob git'
|
2019-08-06 10:56:54 -07:00
|
|
|
alias ga='git add'
|
|
|
|
alias gap='git add --patch'
|
2020-10-05 14:00:17 -07:00
|
|
|
alias gb='git branch -av'
|
|
|
|
alias gop='git open'
|
2019-08-06 10:56:54 -07:00
|
|
|
alias gbl='git blame'
|
|
|
|
alias gc='git commit'
|
|
|
|
alias gcm='git commit -m'
|
|
|
|
alias gca='git commit --amend'
|
|
|
|
alias gcf='git commit --fixup'
|
|
|
|
alias gcl='git clone'
|
|
|
|
alias gco='git checkout'
|
|
|
|
alias gcoo='git checkout --'
|
|
|
|
alias gf='git fetch'
|
|
|
|
alias gi='git init'
|
|
|
|
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"'
|
|
|
|
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"'
|
|
|
|
alias gL='gl --stat'
|
|
|
|
alias gp='git push'
|
|
|
|
alias gpl='git pull --rebase --autostash'
|
|
|
|
alias gs='git status --short .'
|
|
|
|
alias gss='git status'
|
|
|
|
alias gst='git stash'
|
|
|
|
alias gr='git reset HEAD'
|
|
|
|
alias grv='git rev-parse'
|