Skip to content

Instantly share code, notes, and snippets.

@shanaver
Created February 17, 2011 22:55
Show Gist options
  • Save shanaver/832922 to your computer and use it in GitHub Desktop.
Save shanaver/832922 to your computer and use it in GitHub Desktop.
git - error with commit
if you get the following error:
"You have some suspicious patch lines"
You can either commit again with this added "--no-verify"
or disable the pre-commit hook in your commit file here : .git/hooks/pre-commit
To do this comment out the following line:
if (/\s$/) {
bad_line("trailing whitespace", $_);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment