Ignore file permissions with git


Running a git status command shows modified files, with only changed file permissions. This can be due the IDE, for example PHPStorm is known for being a bit too nosy.

diff –git a/myproject/index.php b/myproject/index.php

old mode 100644
new mode 100755


Git configuration contains an entry that defines if file permission changes should be considered as changes or not. Do disable this, just run the following:

git config core.filemode false


About admin

Just another php developer trying to give something back to the community.
This entry was posted in Version control and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s