git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation/gitignore.txt: Clarify gitignore vs tracked files

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 17, 2008, 18:16 UTC
Message-ID
<7vabgggyuc.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080717163622.12592.29919.stgit@localhost>
Petr Baudis <pasky@suse.cz> writes:
Show 6 quoted lines
> -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".
Previous: Petr BaudisNext: Petr Baudis
Message 2 of 4 in “Documentation/gitignore.txt: Clarify gitignore vs tracked files”
  1. Documentation/gitignore.txt: Clarify gitignore vs tracked filesPetr Baudis, Jul 17, 2008
  2. Junio C HamanoJul 17, 2008
  3. Petr BaudisJul 17, 2008
  4. Documentation: How to ignore local changes in tracked filesPetr Baudis, Jul 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.