Why is git creating read-only (444) files?

后端 未结 1 1370
旧巷少年郎
旧巷少年郎 2021-02-19 07:53

Using a shared repo (core.sharedRepository=group) we ran into some issues with git creating read-only (permissions 444) files. No matter which git config items I twiddle there a

相关标签:
1条回答
  • 2021-02-19 08:04

    Those files are part of the object database, which really is read-only. No matter what you do with Git, you can't change the contents of a specific object once it has been created.

    Note that if you back out a commit and create a new one in its place, you'll be creating a new object with a new identifier and new contents. Git will eventually perform its garbage collection to remove the old, unreferenced object(s).

    0 讨论(0)
提交回复
热议问题