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

Re: How to ignore a modified file?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2009, 10:21 UTC
Message-ID
<7v4oy82rt4.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<fabb9a1e0903050209i1e70c8b3n69d7ade9e382b617@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 7 quoted lines
> Heya,
>
> On Thu, Mar 5, 2009 at 09:53, Quim K Holland <qkholland@gmail.com> 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.

Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 3 of 4 in “Re: How to ignore a modified file?”
  1. Quim K HollandMar 5, 2009
  2. Sverre RabbelierMar 5, 2009
  3. Junio C HamanoMar 5, 2009
  4. Sverre RabbelierMar 5, 2009

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.