1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh # # Script to uninstall the git hooks # # Usage (from within git-tools/hooks): # ./uninstall dir=$(dirname $0) for file in $(ls $dir) do if [ $file != "install" ] && [ $file != "uninstall" ] then rm -f "$dir/../../.git/hooks/$file" fi done