Frage

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.

War es hilfreich?

Lösung

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:

  • Any local setting will override the corresponding --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:

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top