Re: how do i re-add a file?
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Apr 1, 2008, 11:41 UTC
- Message-ID
- <20080401114147.GH3264@genesis.frugalware.org>
- In-Reply-To
- <47F21814.6000705@tikalk.com>
On Tue, Apr 01, 2008 at 02:10:12PM +0300, Ittay Dror <ittayd@tikalk.com> wrote:
> I did git-rm on a file and committed. Made some changes to my sources and > committed. Now I want the file back. How can I do that? Related to that, > how do I revert my files to some past commit state so that the commits in > between are kept in the history?
git checkout HEAD^ -- path/to/file