Last active
December 7, 2018 20:21
-
-
Save tgallacher/ae5f2d74982767e1c884909c921c1618 to your computer and use it in GitHub Desktop.
Useful Git config alias / config
This file contains 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.co=checkout | |
alias.ci=commit | |
alias.st=status -s | |
alias.br=branch | |
alias.last=log -1 HEAD | |
# Pretty oneline log summary | |
alias.plog=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
# Word-level diff | |
# Requires `dwdiff` to be installed. On a Mac (with brew), | |
# brew install dwdiff | |
alias.dwdiff=!f() { git diff $@ | dwdiff --diff-input -P -c | less -R; }; f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment