-
-
Save mattbloomfield/ac893e54ba897a643ff2ecd11468c6ce to your computer and use it in GitHub Desktop.
Sets the hooks directory to be git controlled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Sets the hooks directory to be git controlled | |
## Usage: fin git_hooks | |
# Forces whole job to error on failure | |
set -e | |
git config --local core.hooksPath .githooks/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment