Re: [RFC/PATCH 1/2] reset: learn to reset to tree
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 29, 2012, 19:36 UTC
- Message-ID
- <7vmwy0p5f6.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CANiSa6j2sriXaGr0yH9kMrxDEvKHsjNPX_Exbc2_6ecnPYdroQ@mail.gmail.com>
Martin von Zweigbergk <martinvonz@gmail.com> writes:
> Would the correct fix be to > first make "git reset --hard -- $path" work (*sigh*)? I have never > understood why that doesn't (shouldn't) work.
What does it even mean, even when you are on an existing commit, to hard reset partially?
Perhaps you looking for "git checkout $tree -- $path"?