Skip to content

Instantly share code, notes, and snippets.

@robmiller
Created April 9, 2013 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robmiller/5350041 to your computer and use it in GitHub Desktop.
Save robmiller/5350041 to your computer and use it in GitHub Desktop.
A git alias to find out what changes were introduced by the last merge.
# usage, e.g.:
# git difftool `git last-merge`
# or:
# git log `git last-merge`
last-merge = "!echo $(git log -1 --merges --pretty=format:%P | cut -d' ' -f1)..$(git log -1 --merges --pretty=format:%P | cut -d' ' -f2)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment