Git also tracks the permissions (chmod) of the files. If you have changed the file permissions, git will show you as modified files. Mostly the Linux users face this issue while securing their application by changing file permissions. You can configure your git to ignore file permissions changes using the following command.
Advertisement
git config core.fileMode false
The above command will set this for the current project. To make this changes global, run the following command:
git config --global core.fileMode false
You can enable the same anytime using the same command with the option “true” instead of false.