Created
August 31, 2015 14:25
-
-
Save gtback/9d177dda228d9479e117 to your computer and use it in GitHub Desktop.
Install git hooks
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 | |
cd ../.git/hooks | |
echo PWD: $PWD | |
for i in $( ls ../../hooks ); do | |
echo command: ln -s ../../hooks/$i . | |
ln -v -sf ../../hooks/$i . | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit: @flamableconcrete