Learn how to fix all/most files modified issue after git clone

If you ever encountered issue after git clone, issuing $git status shows all files or most of files as modified even without touching them, then in most of cases its .gitattributes file issue, open file with vi editor / notepad

Change ‘* text eol=LF‘ to ‘* text=auto

Further, if you observe your IDE closely (Intellij in my case), you can see its line separator issue.

If all your team works in same environment, then this shouldn’t have pop out in first place, suppose one creates project in Mac/Linux and other pulled in windows then this may occur.

Leave a Reply

Your email address will not be published. Required fields are marked *