Get "PHP 8 in a Nuthshell" (Now with PHP 8.4)
Amit Merchant

Amit Merchant

A blog on PHP, JavaScript, and more

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! I'm Amit. I write articles about all things web development. You can become a sponsor on my blog to help me continue my writing journey and get your brand in front of thousands of eyes.

Comments?