Skip to content

Instantly share code, notes, and snippets.

@cddr
Created April 1, 2014 02:14
Show Gist options
  • Save cddr/9906472 to your computer and use it in GitHub Desktop.
Save cddr/9906472 to your computer and use it in GitHub Desktop.
Git precommit hook for keeping Changelog up-to-date
#!/bin/sh
# MVP precommit hook that keeps the Changelog up-to-date.
#
# Assumes that `pwd` is the project root
./scripts/gitlog-to-changelog >Changelog
git add Changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment