A clone of commit-colors written in Rust.
Create a file named post-commit
inside the .git/hooks
of your
repository with the following content and ensure that it's executable:
#!/bin/bash
commit-colors $(git rev-parse HEAD)
Put the post-commit
file generated above to a directory of your
choice, then run this command:
git config --global core.hooksPath /path/to/my/centralized/hooks
You can follow these instructions if you have an older version of git or want to know more details.