Skip to content

Instantly share code, notes, and snippets.

@ilyakatz
Last active February 22, 2023 14:51
Show Gist options
  • Save ilyakatz/4625224 to your computer and use it in GitHub Desktop.
Save ilyakatz/4625224 to your computer and use it in GitHub Desktop.
helpful precommit hooks
#!/bin/bash -l
source ./.rvmrc
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
#
.git/hooks/pre-commit-master-no-no
if [[ $? == 1 ]]
then
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment