Many times it happens that we do some changes in the file permission but we don’t want git to track those changes and show them in modifications while doing add and commit. So to overcome this problem we need to run the below command from the terminal where we have our project. This command will add a configuration in your local repository, not to track the file mode changes.

Run the following command:

git config core.fileMode false

This command adds a line in .gitignore file to avoid file permission changes.

Let us know if it doesn’t work for you.

Happy Coding !!