Skip to content

Instantly share code, notes, and snippets.

View imnnquy's full-sized avatar
🙃
meh

Quy Nguyen imnnquy

🙃
meh
View GitHub Profile
#!/bin/sh
if [ -f .git/hooks/pre-commit ]; then
read -p "A pre-commit hook has been set up. Do you want to overwrite it? (y/n) " yn
case $yn in
[Yy]*) rm .git/hooks/pre-commit ;;
[Nn]*) exit ;;
esac
fi