Skip to content

Instantly share code, notes, and snippets.

@caccavale
Last active June 27, 2019 09:48
Show Gist options
  • Save caccavale/56f40f6e113e9c53f75a2db57b8ab69d to your computer and use it in GitHub Desktop.
Save caccavale/56f40f6e113e9c53f75a2db57b8ab69d to your computer and use it in GitHub Desktop.
diffbr () { git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative ${2:-'master'}..$1; }
diffc () { git diff $1~ $1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment