A Use For Git's Post-Commit Hook
I love git and I love to be lazy, so lately I’ve been playing with git hooks.
Git’s default pre-commit hook is really handy, but today I’m in more of a post-commit kind of mood. Like all git’s hooks it comes with an example script.
This one isn’t particularly useful. It evaluates Nothing and returns a successful exit code. Big deal.
Git’s default post-commit hook.
#!/bin/sh # # An example hook script that is called after a successful # commit is made. # # To enable this hook, make this file executable. : Nothing