July 15, 2019

Generating markdown changelogs using git

Sometimes I want to create changelogs for my personal projects and add them to blog posts. It’s extra neat to have all changelog entries link to individual commits on GitHub. git log allows you to specify a custom format, and is perfect for the task: $ git log --pretty=format:"* [%s](https://github.com/olehermanse/mrpg/commit/%H)" 09facd30..HEAD Update the GitHub URL with your project, and the commit SHA with the last commit from the previous changelog. Read more

© Ole Herman Schumacher Elgesem 2019

Powered by Hugo & Kiss.