Re: Proposal: "unadd" command / alias.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 27, 2020, 20:32 UTC
- Message-ID
- <xmqqblgnbea5.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CAAdniQ5pRHKUU77XVmZkZ_gUgfYYFpo9=Xt2T6EgzJ3hoT0YMg@mail.gmail.com>
Filipp Bakanov <filipp@bakanov.su> writes:
Show 11 quoted lines
> Hi! I suggest to add "unadd" command, that will undo a git add command. > > git unadd path/to/file > > It will be an alias to: > > git reset HEAD -- path/to/file > > The motivation is that I always forget syntax and have to google each > time I want to undo accidentally added files. Unadd is just much > easier to remember and quite obvious.
The alias is for you to do the above, I think.