Make Git ignore Filemode changes
When you are working on your local development environment, sometimes you need to change permissions on various files. If any of those files are being tracked by Git, then Git thinks there has been a change to the file but in reality it was simply a permissions change. To ignore these changes, go to Terminal in the root of your git repo and type:
git config core.filemode false
From now on git will ignore any filemode changes!
Written by Danny Englander
Related protips
1 Response
Note that this is occasionally necessary, but rarely a good idea. It's important in most cases for your VCS to track your file permissions correctly, so that your repository can function properly.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#