DEV Community

Abdul Mateen
Abdul Mateen

Posted on

Git Dual Boot Files Modified Solution

So there is a problem that you might face which is if you use dual boot or switched from windows to linux or vice versa That the files in your git are shown as modified but when you try to pull it says already uptodate.

This issue often occurs due to differences in how Windows and Linux handle line endings in text files. Windows typically uses CRLF (Carriage Return and Line Feed) for line endings, while Linux uses LF (Line Feed) only. Git can detect these differences and mark files as modified even if their contents haven't changed.

On windows machine configure

git config --global core.autocrlf true

On Ubuntu configure

git config --global core.autocrlf input

if the issue still presists

git add --renormalize .

at last if there is still issue you can make a commit and this will solve the issue. If you do not want to make that commit just delete the folder and clone it from remote (Github) again.

Thanks

Top comments (0)