From: Rogan Dawes Date: Thu, 14 Dec 2006 21:27:48 GMT Subject: Re: Ignoring local changes Message-ID: <4581C1D4.7080102@dawes.za.net> In-Reply-To: <9e7ab7380612140855p1f4ee6c1l5ef24c4d1d169da6@mail.gmail.com> Pazu wrote: > 2006/12/14, Andreas Ericsson : > >> Correction: I just tested this, and while git-add won't touch the file, >> git-update-index will, and git-status still shows it as modified. > > Yes, and that's exactly my problems. There are a number of > modified/removed files in my working copy that were previously added > to the repository, and git-status shows them as modified/removed, even > when they're listed in .gitignore or .git/info/exclude > >> This feels like a bug to me. > > Dunno, sounds like this is by design. I acknowledge that my situation > is unusual, and most often, you'll want to always track a file once > it's been added to the repository. > > -- Pazu Why not remove it from the repo, then set .gitignore? If it is generated code, or compiled code, it probably shouldn't be in the repo in the first place . . . Simply correct that mistake, and you are good to go.