Re: why is git destructive by default? (i suggest it not be!)
- From
- David Jeske <jeske@google.com>
- Date
- Aug 14, 2016, 00:43 UTC
- Message-ID
- <willow-jeske-01l5pWdEFEDjCjLX>
- In-Reply-To
- <200806241322.14224.jnareb@gmail.com>
-- Jakub Narebski wrote:
> If they are using '-f', i.e. force, they should know and be sure what > they are doing; it is not much different from 'rm -f *'.
Sure, no problem. I don't want the ability to "rm -f *". I'm raising my hand and saying "I don't want the power to do these things, so just turn off all the git commands that could be destructive and give me an alternate way to do the workflows I need to do". Just like a normal user on a unix machine doesn't run around with the power to rm -f /etc all the time, even though they may be able to su to root.
Let me guess, you're always running euid==0. :)