Git commit adds ^M at end of line

Thorsten Behrens thb at
Fri Jan 6 00:11:45 UTC 2017

Laurent BP wrote:
> But this morning, when I make the commit with "git commit -a", enter title
> and an empty line, save and exit, the result is huge: all lines of files are
> considered modified. Check with "git log -p" shows that git is considering
> that all modified files have now ^M at end of each line (which means new
> line in MS-DOS).
Hi Laurent,

I was hitting something similar in December - sadly not recalling the
details, but is it possible that you have a non-empty .gitattributes
file in that repo, messing with settings as described here: ?


-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <>

More information about the LibreOffice mailing list