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
This is especially useful when you have to deal with changing file permissions for your projects frequently.
Was that useful? Consider leaving a
Tip👋 Hi there! This is Amit, again. I write articles about all things web development. If you enjoy my work (the articles, the open-source projects, my general demeanour... anything really), consider leaving a tip & supporting the site. Your support is incredibly appreciated!