From: Junio C Hamano Date: Thu, 17 Jul 2008 18:16:59 GMT Subject: Re: [PATCH] Documentation/gitignore.txt: Clarify gitignore vs tracked files Message-ID: <7vabgggyuc.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080717163622.12592.29919.stgit@localhost> Petr Baudis writes: > -git should ignore. Each line in a `gitignore` file specifies a > -pattern. > +git should ignore. > +Note that all the `gitignore` files really concern only files > +that are not already tracked by git; there is no direct mechanism > +to make git ignore your local modifications in already tracked files. Thanks. I'd suggest dropping everything after ';'. - If you want to keep local changes without ever checking in, you can do so by making partial commits. - You could mark these paths "assume unchanged".