Switching from Windows shows all files in git as modified
I don't know if I should write here or StackOverflow, but I recently switched from Windows to MacOS and plugged in the eHDD which had my website projects on there. I forgot to push the updated code to git before moving so I wanted to do that now.
The problem is when I open the folder, it shows that every single line is modified and all files are modified.
Is this a permissions issue or something?
The eHDD is formatted as NTFS, but the projects were extracted from a .zip archive
Solution 1:
Seems like a duplicate here.
Resolved the issue hard reseting the staged files: https://stackoverflow.com/a/41041699/12034488
Which is taken from https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings which explains the issue and the fix.