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.
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.
Copyright © 2021 Jogjafile Inc.
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.filemodeorgit config --global core.filemoderespectivelygit config core.filemode truewould enable mode change awareness.Note:
--gobalsetting (in case of doubt, I would recommend to change the local config first).core.filemodeapplies to the x bit of regular files only.See also: