Re: "git checkout" safety feature
- From
Matthias Urlichs <matthias@urlichs.de>
- Date
- Nov 5, 2018, 06:24 UTC
- Message-ID
- <fdedc47b-8661-9451-b4ef-12ec6bd13c04@urlichs.de>
- In-Reply-To
- <xmqqk1lsl448.fsf@gitster-ct.c.googlers.com>
Hi,
> "git checkout <commit> <pathspec>" is a feature to overwrite local > changes. It is what you use when you make a mess editing the files > and want to go back to a known state. Why should that feature be > destroyed?
Not destroyed, but optionally made finger-fumble-save – like "alias rm rm -i".
-- -- Matthias Urlichs