Make Git automatically remove trailing white space before committing
Those settings (core.whitespace and apply.whitespace) are not there to remove trailing whitespace but to: core.whitespace: detect them, and raise errors apply.whitespace: and strip them, but only during patch, not “always automatically” I believe the git hook pre-commit would do a better job for that (includes removing trailing whitespace) Note that at any given time you … Read more