From: Markus Heidelberg Date: Sat, 02 May 2009 15:33:07 GMT Subject: Re: reverting a file or files back to repository copy Message-ID: <200905021733.08557.markus.heidelberg@web.de> In-Reply-To: Peter Harris, 02.05.2009: > On Sat, May 2, 2009 at 10:54 AM, Aaron Gray wrote: > > How do I do the eqivalent of an 'svn revert' on a single file, on a > > directory of files, or on all files ? > > git checkout This will use the state of the files from the index. To revert to the latest commit, i.e. discard all your local changes of particular files, use git checkout HEAD -- Markus