This is a simple shell script to generate a Markdown-friendly list of commits for a changelog. The list of commits will be from the current HEAD
to the previous tag (including lightweight tags), in reverse chronological order.
Simply run the script in a git repository:
$ ./changelog.sh
## HEAD
* Commit 1.
* Commit 2.
* Commit 3.
* Commit 4.
You can also save the contents to a file:
$ ./changelog.sh > changelog.md