Git and directory modes:
In short, you need extensions to fix the modes and permissions in general. See this question:
How do git allow folder access? → http://joeyh.name/code/etckeeper/
Git and file modes (regular files only):
Use git -config (1) to see how git is configured:
git config core.filemode or git config --global core.filemode respectively
git config core.filemode true will include an understanding of mode change.
Note:
- Any local setting will override the corresponding
--gobal (if in doubt, I would recommend changing the local configuration first). core.filemode applies only to x bits of regular files.
See also:
source share