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 gs='git status'
|
||||||
alias gss='git status -s'
|
alias gss='git status -s'
|
||||||
alias gl='git pull'
|
alias gl='git pull'
|
||||||
|
alias gpp='git pull && git push'
|
||||||
alias gup='git fetch && git rebase'
|
alias gup='git fetch && git rebase'
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
alias gpo='git push origin'
|
alias gpo='git push origin'
|
||||||
|
|
@ -27,6 +28,10 @@ alias gexport='git archive --format zip --output'
|
||||||
alias gdel='git branch -D'
|
alias gdel='git branch -D'
|
||||||
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master'
|
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master'
|
||||||
alias gll='git log --graph --pretty=oneline --abbrev-commit'
|
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
|
if [ -z "$EDITOR" ]; then
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue