Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git status shows modified after files copied

When I copy files from my Linux machine to my external HDD (FAT format), 'git status' shows that files are modified. I guess that occurs because of the file system difference.

I formatted the external HDD with FAT to share it with my Mac, Windows, and Linux.

How can I solve this problem?

Thanks.

Sam

like image 476
Sam Kong Avatar asked Dec 13 '25 19:12

Sam Kong


1 Answers

This could be caused by mismatched permission bits. From git-config manpage:

core.fileMode

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).

like image 125
jpalecek Avatar answered Dec 15 '25 13:12

jpalecek