From: Junio C Hamano Date: Thu, 05 Mar 2009 10:21:43 GMT Subject: Re: How to ignore a modified file? Message-ID: <7v4oy82rt4.fsf@gitster.siamese.dyndns.org> In-Reply-To: Sverre Rabbelier writes: > Heya, > > On Thu, Mar 5, 2009 at 09:53, Quim K Holland wrote: >> You can run "git checkout directory". > > Yes, but that would destroy his changes, I do not get the impression > that that's what he wants... Actually, I thought the advises from you two were both horrible without first qualifying the answers nor asking what was really wanted. Yours didn't *ignore* changes, but staged (and would result in a later commit) a different change to these paths, namely removal of them. "I have these changes but I want to ignore" may mean "I didn't mean to change them and do not care about them." and "checkout" may be the right thing to use if that is the case.