From: Miklos Vajna Date: Tue, 01 Apr 2008 11:41:47 GMT Subject: Re: how do i re-add a file? 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 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