This hook works similarly to the
post-commit hook, but it's called whenever you successfully check out a reference with
git checkout. This could be a useful tool for clearing out your working directory of auto-generated files that would otherwise cause confusion.
This hook accepts three parameters:
Its exit status has no affect on the
git checkout command.