i modified a file "index.php", and i want to apply a push for the second time so i apply those commands:
git add /path/to/index.php
git commit --amend
but i have this result :
/path/index.php:7: trailing whitespace.
/path/index.php:52: trailing whitespace.
/path/index.php:62: trailing whitespace.
/path/index.php:81: trailing whitespace.
What i want is to commit ignoring those whitespaces that are existing from the beginning in this file , i don't want to remove them.
Forcing the commit to ignore those whitespaces
I hope that any one have a solution for this issue.Thank you for your Help