Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How to undo git-rm?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:24

Neil Schemenauer [off-list ref] writes:
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"?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help