Skip to content

Instantly share code, notes, and snippets.

@kwharrigan
Last active August 29, 2015 14:04
Show Gist options
  • Save kwharrigan/a058a0a8b3899efcffb4 to your computer and use it in GitHub Desktop.
Save kwharrigan/a058a0a8b3899efcffb4 to your computer and use it in GitHub Desktop.
git log -n 3 --pretty=format:'{%n "parent": "%P", %n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' | sed -e '1i\
[' -e '$s/,/]/g' > tmp.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment