LF will be replaced by CRLF the next time Git touches it

I’m getting this errormessage when adding autocreated files to my repo and don’t know why and how to void it?

warning: in the working copy of 'myfile.yml', LF will be replaced by CRLF the next time Git touches it

Did you try googling why git shows this message? There’s plenty of results with explanations…

https://www.google.com/search?q=git+lf+will+be+replaced+by+crlf&iflsig=AL9hbdgAAAAAZ0glVIcxR5MbggpXEMkfcUIkylM_fUk3

Yes, of course and most of them dealing with changing Git settings, which i don’t like because it only affects some autocreated files where others could do well.

Yep it’s a git problem, rather than a gitlab problem. Which would mean you would need to use the changes they suggest.