Re: How to undo git-rm?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2008, 00:24 UTC
- Message-ID
- <7v63vi1bvj.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20080318230441.GA664@arctrix.com>
Neil Schemenauer <nas@arctrix.com> writes:
Show 5 quoted lines
> This seemingly simple operation has me stumped. I removed something > from my try using "git rm" and now I want it back. With SVN I would > use "svn cat <path> > <path>". After some searching around, I > though git-cat-file would do the trick. Alas, it appears as though > it looks up the SHA for the path in the index and so it too fails.
"git checkout HEAD -- that-path"?