Git commit adds ^M at end of line

Muhammet Kara muhammet.kara at
Sun Jan 1 19:39:29 UTC 2017

Hi Laurent,

2017-01-01 21:08, Laurent BP yazmış:
>> Sound a lot like you made the git init or git clone command from a 
>> msdos
> prompt and not cygwin.
> Thanks Jan for your answer. But I'm on Linux system (OpenSuse 13.2), 
> I'm
> editing file with KWrite and I launched git from a Konsole terminal. 
> My
> previous commit did not suffer from this default:
> My previous commit on help was also correct
> I can remove these ^M in the patch file, but not in source files.

I experienced a similar problem once when I pasted some piece of code 
from a web page. Opening the source file with vim and giving this 
command (to set file format to unix) worked for me:

:set ff=unix


> -----
> LibreOffice
> --
> View this message in context:
> Sent from the Dev mailing list archive at
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at

More information about the LibreOffice mailing list