Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate a PDF logbook from git commits

I know that I am able to view previous commits in various ways using git log but I was wondering if anybody here could recommend some good tools for creating a PDF or HTML logbook from git commits. I was hoping I would be able to generate something similar to the style of Github commit logs but with different info.

If people don't have any ideas on programs to generate these logs, what are their thoughts or recommendations if I attempt to make my own generator?

like image 775
Hugoagogo Avatar asked Jun 27 '11 05:06

Hugoagogo


People also ask

How do you print the history of the commits of your repository?

`git log` command is used to view the commit history and display the necessary information of the git repository. This command displays the latest git commits information in chronological order, and the last commit will be displayed first.

How do I get git logs?

The command for that would be git log –oneline -n where n represents the number up to which commit you to want to see the logs.

Does git have a log?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit , the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.

What is git log file?

The git log command shows a default output for quickly reviewing the commit history. The default output includes the commit ID, commit author, developer email, commit date and commit message string for each commit on the active branch.


2 Answers

Since the project is due quite soon i just wrote up a quick script myself to output a log the way i want to, it just scrapes the data from git-log and outputs it into a template (borrowed from github).

Example output

More info

like image 122
Hugoagogo Avatar answered Oct 15 '22 06:10

Hugoagogo


It is possible using 'ccze' and -h (html output) switch

git log | ccze -A -h > gitlog.html
like image 23
Rafał Kiełbus Avatar answered Oct 15 '22 06:10

Rafał Kiełbus