Skip to content

Instantly share code, notes, and snippets.

@amadden80
Last active August 29, 2015 14:00
Show Gist options
  • Save amadden80/11197738 to your computer and use it in GitHub Desktop.
Save amadden80/11197738 to your computer and use it in GitHub Desktop.
git-hook-hack
# Move ALL the files and folders to where they "Should" be BEFORE running this!!!
# Copy/Paste this from within the root of the repo:
# curl 'https://gist.githubusercontent.com/amadden80/11197738/raw/898d5382af2608c087b5b4dbc0c9aec070c6d39e/gistfile1.sh' | bash
mv .git/hooks/pre-commit .git/hooks/pre-commit-temp.sample
git add -A
git commit -m "pre-hook hack"
mv .git/hooks/pre-commit-temp.sample .git/hooks/pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment