Skip to content

Instantly share code, notes, and snippets.

@dalmosantos
Created May 4, 2020 05:31
Show Gist options
  • Save dalmosantos/365c7e50cf740eef3231595089f5087d to your computer and use it in GitHub Desktop.
Save dalmosantos/365c7e50cf740eef3231595089f5087d to your computer and use it in GitHub Desktop.
git log --pretty
git log --pretty --date-order -C -M --pretty=format:"<%h> %ad [%an] %Cgreen%d%Creset %s" --all --date=short --max-count=10
git log     --pretty=format:'{%n  "commit": "%H",%n  "author": "%aN <%aE>",%n  "date": "%ad",%n  "message": "%f"%n},' --max-count=10  $@ |     perl -pe 'BEGIN{print "["}; END{print "]\n"}' |     perl -pe 's/},]/}]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment