Confirmed users
425
edits
| Line 13: | Line 13: | ||
git clone git://gist.github.com/3560385.git | git clone git://gist.github.com/3560385.git | ||
mv 3560385/pre-commit /usr/local/git/share/git-core/templates | mv 3560385/pre-commit /usr/local/git/share/git-core/templates/hooks | ||
rm -rf 3560385 | rm -rf 3560385 | ||
Ensure that the pre-commit hook file is marked as executable: | Ensure that the pre-commit hook file is marked as executable: | ||
chmod +x /usr/local/git/share/git-core/templates/pre-commit | chmod +x /usr/local/git/share/git-core/templates/hooks/pre-commit | ||
Reinitialize any existing git repositories: | Reinitialize any existing git repositories: | ||
git init | git init | ||