check file for trailing whitespace code example Example: trailing whitespace git apply git apply --reject --whitespace=fix mychanges.path