The git line ending mess
I found an article that explains the various options well.
So I decide to do
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:
So I decide to do
git config core.autocrlf inputSo 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.phpI'll watch it and see what happend!
Comments
Post a Comment