Re: No Checkout / Read Only config Flag
- From
Philip Oakley <philipoakley@iee.email>
- Date
- Nov 8, 2019, 16:08 UTC
- Message-ID
- <baf800ba-d92c-74be-d590-56f3bb4c6c44@iee.email>
- In-Reply-To
- <f3378b7b-c745-58db-55ed-c2c2a6818734@gmx.de>
On 07/11/2019 21:34, Ingo Wolf wrote:
> Hi, > > is there a readonly / no checkout flag in the git configs? >
Not that I'm aware of, but the use-case isn't clear, and is perhaps contrary to actually having a version management system
> I use Git to trace / Backup some worktrees and would like to prevent > changing them accidentally with git. >
How would such 'accidents' happen? What's the size of the worktree and how do you do such an accidental commit?
I could see that if you are changing hundreds of files within a commit, and only one or two files need preserved, then did a `git add -A` you would include any changes to those one or two special files, which needed special attention.
This feels similar but not quite the same as previous discussions about 'precious' files (the latter commonly being untracked/ignored, but shouldn't be removed/cleaned).
Technology won't solve the human error modes..., though a clear use case can help.
-- Philip