Skip to content

Instantly share code, notes, and snippets.

@haxpor
Created June 30, 2016 05:36
Show Gist options
  • Save haxpor/969e6cf6c71825ec9ecab3d101a5de47 to your computer and use it in GitHub Desktop.
Save haxpor/969e6cf6c71825ec9ecab3d101a5de47 to your computer and use it in GitHub Desktop.
Put this command in global git and execute it like "git nicediff branch1..branch2" to see difference between branch in nice format
[alias]
nicediff = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment