Skip to content

Instantly share code, notes, and snippets.

@tgallacher
Last active December 7, 2018 20:21
Show Gist options
  • Save tgallacher/ae5f2d74982767e1c884909c921c1618 to your computer and use it in GitHub Desktop.
Save tgallacher/ae5f2d74982767e1c884909c921c1618 to your computer and use it in GitHub Desktop.
Useful Git config alias / config
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