From: Björn Steinbrink Date: Fri, 06 Feb 2009 14:09:11 GMT Subject: Re: Question about removing changes from the index Message-ID: <20090206140911.GC31491@atjola.homenet> In-Reply-To: On 2009.02.06 14:57:35 +0100, Gustav Hållberg wrote: > I'm wondering if there's anyone who can recommend a smart way to > "reset" the index entry for individual files to the contents of HEAD, > in effect, removing any previous change between HEAD and the index > (for those files). Believe it or not, it's "git reset" ;-) git reset -- file You can only reset the index entry for that file to some older version, e.g. "git reset HEAD~5 -- file". Björn