Skip to content

Instantly share code, notes, and snippets.

@mattbloomfield
Created April 2, 2021 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbloomfield/ac893e54ba897a643ff2ecd11468c6ce to your computer and use it in GitHub Desktop.
Save mattbloomfield/ac893e54ba897a643ff2ecd11468c6ce to your computer and use it in GitHub Desktop.
Sets the hooks directory to be git controlled
#!/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