How can I get git to read mode changes?

I changed the permissions on the folder and want to push it into the repository. However, git does not recognize permission changes.

Any idea why not and how to fix it? Thanks in advance.

+4
source share
1 answer

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:

+4
source

All Articles