Created
October 13, 2013 16:01
-
-
Save russomi/6963862 to your computer and use it in GitHub Desktop.
git alias to output git log as json
This file contains 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
#Add this to your .gitConfig file in your .git folder | |
#To to execute type at git bash: git log-json > ChangeLog.json | |
#It will save the output to a file named ChangeLog.json | |
#You can use this file to create your own pretty version of the ChangeLog | |
[alias] | |
log-json = !git log --pretty=format:'\"%h\": {%n \"commit\": \"%H\",%n \"author\": \"%an <%ae>\",%n \"date\": \"%ai\",%n \"message\": \"%s\"%n},' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment