Skip to content

Instantly share code, notes, and snippets.

@IsTheJack
Created February 2, 2015 23:06
Show Gist options
  • Save IsTheJack/784723c5f4aabbbdf65f to your computer and use it in GitHub Desktop.
Save IsTheJack/784723c5f4aabbbdf65f to your computer and use it in GitHub Desktop.
git log 4 Json
git log --pretty=format:\
"{\
%n \"commit\":\"%H\",\
%n \"data\":\"%ai\",\
%n \"nome\":\"%an\",\
%n \"email\":\"%ae\",\
%n \"commiter\":\"%cn\",\
%n \"mensagem\":\"%s\"\
%n}" > log4JSON.json
@IsTheJack
Copy link
Author

Esse shell script formata o resultado do comando 'git log' em formato JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment