Re: Question about removing changes from the index
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Feb 6, 2009, 14:11 UTC
- Message-ID
- <vpqprhvbqpk.fsf@bauges.imag.fr>
- In-Reply-To
- <a1e915350902060557m5a67eba0q819c2ba2a0a49c21@mail.gmail.com>
Gustav Hållberg <gustav@gmail.com> writes:
> I'm wondering if there's anyone who can recommend a smart way to > "reset" the index entry for individual files to the contents of HEAD, > in effect, removing any previous change between HEAD and the index > (for those files).
Isn't "git reset -- path" what you want? Or perhaps "git checkout HEAD -- path" if you also want to reset the file content.
-- Matthieu