How-to revert a locally modified file

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: git <git@...>
Date: Friday, December 1, 2006 - 1:23 am

Hello,

I searched the net and couldn't find the answer to how to revert a
file to its "pre-modified" state.

I did see in the 0.99.7 To Do:

* Perhaps a tool to revert a single file to pre-modification
state? git-cat-file blob `git-ls-files | grep foo` >foo or
git-cat-file blob `git-ls-tree HEAD foo` >foo? What should
the command be called? git-revert is taken so is
git-checkout.

Did such a command come to be?

Thanks,

Wink Saville
-
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 revert a locally modified file, Wink Saville, (Fri Dec 1, 1:23 am)
Re: How-to revert a locally modified file, Junio C Hamano, (Fri Dec 1, 1:51 am)
Re: How-to revert a locally modified file, Wink Saville, (Fri Dec 1, 2:20 am)