1

This is the actual situation: I create a new repository with just one file. I make this file read-only (chmod 444) and want to commit that. After that i make a bare repository of that and do make a clone repository of that somewhere. The file in this new repository has now the permission 644 as usual git behavior.

How do i make git read ALL file permission in the first place?

I already tried to add to config core.fileMode true, but it doesn't work. Hopefully someone can help me.

  • 3
    Possible duplicate of [Retaining file permissions with Git](https://stackoverflow.com/questions/3207728/retaining-file-permissions-with-git) – Vlad274 Oct 02 '18 at 13:23
  • 1
    Possible duplicate of [What file metadata is preserved by Git?](https://stackoverflow.com/questions/45578579/what-file-metadata-is-preserved-by-git) – phd Oct 02 '18 at 13:34
  • https://stackoverflow.com/search?q=%5Bgit%5D+preserve+file+permissions – phd Oct 02 '18 at 13:34
  • @Vlad274 you are right. – Markus Huber Oct 04 '18 at 05:55

0 Answers0