Footguns in Git CRLF conversions of text files
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A developer, Bjørn Erling Fløtten, documents practical pitfalls in how Git converts CRLF and LF line endings in text files, tested on Git 2.53.0. The article's core advice is to run git add --renormalize after changing core.autocrlf or .gitattributes, and to heed Git's line-ending warnings, since index and working-tree states…