Created
May 8, 2013 16:40
-
-
Save wjlafrance/5541744 to your computer and use it in GitHub Desktop.
Take the diff of the latest commit (difference between HEAD and the prior commit) and put it in patch.txt. Useful for code reviews and stuff.
This file contains hidden or 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
git diff `git log -n1 --skip 1 | grep commit | awk '{print $2}'` HEAD > patch.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment