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?
`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.
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.
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.
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.
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
It is possible using 'ccze' and -h (html output) switch
git log | ccze -A -h > gitlog.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With