Neel Basu Neel Basu - 1 month ago 13
Git Question

git commit You have some suspicious patch lines

git commit
giving me the following message

*
* You have some suspicious patch lines:
*
* In projects/bong/traid/apps/controller/project.php
* trailing whitespace (line 220)
projects/bong/traid/apps/controller/project.php:220:
* trailing whitespace (line 223)


What does that mean ?

Answer

That happens when the file has trailing whitespace, if you run:

git commit --no-verify

it will commit ok. ref

Comments