Skip to content

Instantly share code, notes, and snippets.

@katmutua
Created November 5, 2015 10:36
Show Gist options
  • Select an option

  • Save katmutua/644b01c176a5abee276b to your computer and use it in GitHub Desktop.

Select an option

Save katmutua/644b01c176a5abee276b to your computer and use it in GitHub Desktop.
git-sh-setup # for die
git-diff-index -p -M --cached HEAD -- | grep '^+' |
grep ddescribe && die Blocking commit because string ddescribe detected in patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment