This is a pretty simple question: as a Git newbie I was wondering if there’s a way for me to output my git log to a file, preferably in some kind of serialized format like XML, JSON, or YAML. Any suggestions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
to output to a file:
To specify a format, like you want everything on one line
or you want it a format to be emailed via a program like sendmail
to generate JSON, YAML or XML it looks like you need to do something like:
This gist (not mine) perfectly formats output in JSON:
https://gist.github.com/1306223
See also: