From: Junio C Hamano Date: Tue, 05 Jan 2010 18:41:03 GMT Subject: Re: How to exclude files from "git diff" Message-ID: <7vvdfgxum8.fsf@alter.siamese.dyndns.org> In-Reply-To: <6dc9ffc81001051015x3bebc994r3d475bdb59e12d39@mail.gmail.com> "H.J. Lu" writes: > On Tue, Jan 5, 2010 at 9:54 AM, Dmitry Potapov wrote: >> On Tue, Jan 5, 2010 at 5:20 PM, H.J. Lu wrote: >>> >>> Yes, I want those files in repository. They are for my personal use only. >> >> If you modified some file locally and do not want to see and commit >> those modifications, you may want to use: >> >> git update-index --assume-unchanged foo >> > > I added those files into my repository for bookkeeping purpose. It > shouldn't go out at all. Sounds like time to run "rm --cached" to me. IOW, keep it untracked.