Prevent Git from tracking file permissions
Here’s one of the most useful commands if you want to prevent Git from tracking file permissions. This is the sceanrio where all the files shown as modified in Git is when you change the file permissions, but you don’t want to commit those changes.
git config core.fileMode false