Re: Proposal: create meaningful aliases for git reset's hard/soft/mixed
- From
Miles Bader <miles@gnu.org>
- Date
- Dec 2, 2011, 07:45 UTC
- Message-ID
- <buowrafxvq9.fsf@dhlpc061.dev.necel.com>
- In-Reply-To
- <201112020826.14114.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 10 quoted lines
>> > I remember them as: >> > --soft -> git uncommit >> > --mixed -> git unadd >> > --hard -> git undo >> >> I don't particular like these names, but conceptually they are helpful. > > I think all of these, but the last one in particular, are *very* > dangerous oversimplifications. Doubly so if you then use "undo" with > a revision argument.
I agree. Not only is it completely wrong when used with a revision argument, but "undo" is so vague that it's probably useless for _any_ git command, much less one so dangerous as "reset --hard".
-miles
-- Friendship, n. A ship big enough to carry two in fair weather, but only one in foul.