What to do when git show all your files as Modified when its not

If you are seen all the git files as Modified and you haven't change anything or you just clone you repo that's because something when wrong.

You can run a diff command to see what's happening with your file and why they are different from the original repo.

git diff

And this is what we'll see

In my case something about permissions when wrong and thats because I was seeing all my files as changed.

So I have to change the default git config core.fileMode to false to avoid git checking about permissions changes.

git config core.fileMode false

From git-config(1):

       If false, the executable bit differences between the index and the
       working copy are ignored; useful on broken filesystems like FAT.
       See git-update-index(1). True by default.