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

Re: git rerere forget isn't working?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 12, 2015, 18:24 UTC
Message-ID
<xmqq7fwrambo.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAHd499C6opP_0RBGDS=h+1qhrr=7sD0w0hf_bpGWT-wPP4iJoQ@mail.gmail.com>
Robert Dailey <rcdailey.lists@gmail.com> writes:
> So I want a way to clear out the whole rerere cache (i.e. every
> remembered conflict resolution). So I try this command:
>
> $ git rerere forget .

The forget subcommand is to tell Git that you screwed up in this sequence:

    $ git merge other ;# or any "mergy" operation that leaves conflict
    $ edit foo ;# help Git resolve conflicts
    $ git rerere foo ;# and tell it to remember
    ... and then later find that your earlier resolution was wrong
    $ git rerere forget foo

The "dot" there may mean "all paths", but it is still "all paths I resolved for this particular set of conflicts the "mergy" operation produced. There is no "I do not care if there are good resolutions remembered that do not have anything to do with the current merge, just remove all of them"---that is what "rm -fr .git/rr-cache" is for.

Previous: Robert DaileyNext: Robert Dailey
Message 2 of 3 in “git rerere forget isn't working?”
  1. Robert DaileyJan 12, 2015
  2. Junio C HamanoJan 12, 2015
  3. Robert DaileyJan 13, 2015

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.