I've changed permissions on a folder and want to push it out to the repository. However, git doesn't recognize the permission changes.
Any idea why not and how to fix it? Thanks in advance.
Git & directory modes:
In short, you would need extensions to commit directory modes and permissions in general. See this question:
How does git handle folder permission? --> http://joeyh.name/code/etckeeper/
Git & 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
would enable mode change awareness.
Note:
--gobal
setting (in case of doubt, I would recommend to change the local config first).core.filemode
applies to the x bit of regular files only.See also: