When I pull change from my repositories, Git change the file permissions (actually, he change the group write permission).
If I’m correct, Git should only track executable bit and this anyway can be removed using setting core.filemode to false.
But, although the filemode is set to false (in local, global and user), when I pull, write permission constantly change.
I could use a git-hooks in order to reset correct chmod, but this is some overhead and I’d prefer if there’s a way to just ask git to completly ignore file mode change.
Anyone know how to achieve this ?
One config setting that might help here is
core.sharedRepository, presented in the blog post "Preserving Group Write on Git Objects in a Collaborative Repository":Make sure of the value of your
umask:2022 (10 years later), SyedAsadRazaDevops adds in the comments:
That would be the same as: