The git line ending mess

I found an article that explains the various options well.

So I decide to do
git config core.autocrlf input
So any CRLF should be converted to LF when committing.

Now I'm not sure that git deals with converting CR to LF. These are old-style mac line endings, and might show up as ^M in the diff.

Just in case it doesn't, we can do it manually:
tr '\r' '\n' < app.php > app.php
I'll watch it and see what happend! 

Comments

Popular Posts