Re: git reset --hard and uncommitted files in index
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- May 22, 2009, 10:50 UTC
- Message-ID
- <fabb9a1e0905220350i12d30d17udf078ec2ff76513a@mail.gmail.com>
- In-Reply-To
- <gv52s4$e7h$1@ger.gmane.org>
Heya,
On Fri, May 22, 2009 at 04:32, Thomas Guyot-Sionnest <dermoth@aei.ca> wrote:
> Shouldn't git just unstage it?
You can do that too, 'git reset && git reset --hard' will not touch untracked files. The first will unstage all your changes, the second will blow away all changes to tracked files.
-- Cheers, Sverre Rabbelier