Added some awesome git aliases for statistics, history, and seeing what changed.
parent
0cfec65383
commit
8be156fc8b
|
|
@ -11,6 +11,7 @@ alias gst='git status'
|
|||
alias gs='git status'
|
||||
alias gss='git status -s'
|
||||
alias gl='git pull'
|
||||
alias gpp='git pull && git push'
|
||||
alias gup='git fetch && git rebase'
|
||||
alias gp='git push'
|
||||
alias gpo='git push origin'
|
||||
|
|
@ -27,6 +28,10 @@ alias gexport='git archive --format zip --output'
|
|||
alias gdel='git branch -D'
|
||||
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master'
|
||||
alias gll='git log --graph --pretty=oneline --abbrev-commit'
|
||||
alias gg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
|
||||
alias ggs="gg --stat"
|
||||
alias gsl="git shortlog -sn"
|
||||
alias gw="git whatchanged"
|
||||
|
||||
if [ -z "$EDITOR" ]; then
|
||||
case $OSTYPE in
|
||||
|
|
|
|||
Loading…
Reference in New Issue