Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some git projects in a linux server.

i use Mac and linux to do my programming. the problem is that the mac filesystem's permissions doesn't really work well like in linux so all the files seems to be on umask 0755. so whenever i pull my code on my mac, git status shows that all my files are changed and when i use git diff it shows that the only change is in the umask. how can i tell git not to store and check for umask changes ?


share|improve this question
I'm quite sure OS X supports Unix-style permissions... –  grawity Mar 22 '11 at 22:15
umask and permissions aren't the same thing. Are you sure you really know what you're doing here? –  Marnen Laibow-Koser Mar 22 '14 at 15:22

1 Answer 1

up vote 18 down vote accepted

Set the core.fileMode configuration property to false. You can do this easily with this command:

git config core.fileMode false
share|improve this answer
thanks a lot! :) –  ufk Mar 22 '11 at 23:25
Is this a per-repository setting or is it possible to make this work globally? –  acme Jan 18 '12 at 15:24
@acme: Like all git settings, you can set it per-repository, per user, or systemwide, by passing no extra switch, --global, or --system, respectively. See git help config for details. –  Patches Jan 20 '12 at 4:06
Thanks! But setting it globally does not automatically add this setting to new repositories, it's just a setting on my local machine? –  acme Mar 1 '12 at 11:22
@acme: Yup, setting an option with --global affects all operations on any repository accessed with your user account locally. It doesn't affect anyone else. To set it for all users of a particular repository you'd have to toggle the per-repository setting on the server everyone pushes to. –  Patches Mar 2 '12 at 5:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.