How to undo git-rm?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Schemenauer
Date: Tuesday, March 18, 2008 - 4:04 pm

Hi,

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.

  Neil
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to undo git-rm?, Neil Schemenauer, (Tue Mar 18, 4:04 pm)
Re: How to undo git-rm?, Junio C Hamano, (Wed Mar 19, 5:24 pm)
Re: How to undo git-rm?, Jakub Narebski, (Wed Mar 19, 5:49 pm)
Re: How to undo git-rm?, Elijah Newren, (Wed Mar 19, 7:53 pm)
Re: How to undo git-rm?, Elijah Newren, (Wed Mar 19, 7:54 pm)