Last active
December 12, 2015 01:39
-
-
Save ringmaster/4693169 to your computer and use it in GitHub Desktop.
My global git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias.st=status | |
alias.ci=commit | |
alias.br=branch | |
alias.co=checkout | |
alias.df=diff | |
alias.dc=diff --cached | |
alias.lol=log --graph --decorate --pretty=oneline --abbrev-commit | |
alias.lola=log --graph --decorate --pretty=oneline --abbrev-commit --all | |
alias.ls=ls-files | |
alias.ign=ls-files -o -i --exclude-standard | |
branch.autosetuprebase=always | |
alias.alias=!sh -c '[ $ | |
alias.aliases=!git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | |
alias.lg=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
alias.s=status -sb | |
alias.whois=!sh -c 'git log -i -1 --pretty="format:%an <%ae> | |
" --author="$1"' - | |
alias.whatis=show -s --pretty='tformat:%h (%s, %ad)' --date=short | |
alias.fshow=! sh -c 'git show --pretty=format: --name-only $1 | grep -v ^$ | uniq | sed -e s#^#`git rev-parse --show-toplevel`/#' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment