Telling Git To Ignore File Permissions
So, I have been having issues with git and repos. Im still extremely new to git (having used subversion for years) so every once in a while I run into something that makes me want to keep going back to svn. Today was such a day when I discovered that git didn’t like that some of the permissions had changed on the files within my repos.
Most of this problem for me occurs from working on files both in Linux and Windows, so its natural that samba will change some of these permissions. So, after reading the manual for a while, I discovered I could issue the following:
git config core.filemode false
This will instruct git to ignore changes to file permissions! Yay! Migraine easing. And according to the git manual:
core.fileMode If false, the executable bit differences between the index and the working copy are ignored; useful on broken filesystems like FAT. See git-update-index(1). True by default.
And there you have it 🙂 Pretty straight forward, and saved me from having to buy more headache pills 🙂
This entry was posted by FishGuy876 on September 21, 2011 at 12:09 pm, and is filed under Computers, Linux, Programming, Windows. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a Reply