How do I restore a file I accidentally removed from my git
repository? I know this is a trivial question, but I haven't found the answer in the documentation.
views:
84answers:
2I figured it was something trivially simple. I guess I interpreted the documentation as referring to complete trees rather than individual files. Thanks.
Steve Emmerson
2009-12-03 23:14:23
It *does* refer to complete trees *unless* you also give a file name. :)
Bombe
2009-12-04 07:36:52
A:
Did you commit after delete? If not you can commit and checkout the file back again.
Prashanth
2009-12-04 07:22:01