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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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: