new git aliases

pull/213/head
Steve Martin 2013-06-12 10:26:42 +01:00
parent 8d7a9cc1bb
commit d083696013
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@ alias get='git'
alias gst='git status' 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 gpl='git pull'
alias gpr='git pull --rebase' alias gpr='git pull --rebase'
alias gpp='git pull && git push' alias gpp='git pull && git push'
alias gup='git fetch && git rebase' alias gup='git fetch && git rebase'
@ -28,12 +28,16 @@ alias gco='git checkout'
alias gexport='git archive --format zip --output' 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 gl='git log'
alias gls='git log --pretty=%H'
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 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 ggs="gg --stat"
alias gsl="git shortlog -sn" alias gsl="git shortlog -sn"
alias gw="git whatchanged" alias gw="git whatchanged"
alias grba="git for-each-ref --sort=-committerdate --format='%(objectname) %(objecttype) %(committerdate) %(refname)' refs/heads/ | tail -r"
if [ -z "$EDITOR" ]; then if [ -z "$EDITOR" ]; then
case $OSTYPE in case $OSTYPE in
linux*) linux*)