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

Suggested command in git-filter-branch(1)

From
Sam Vilain <sam@vilain.net>
Date
Jun 20, 2010, 08:31 UTC
Message-ID
<1277022664.3728.1.camel@denix>
+* Remove the original refs backed up by git-filter-branch: say `git
+  for-each-ref \--format="%(refname)" refs/original/ | xargs -n 1 git
+  update-ref -d`.

This is sick. I would normally just tell people to use 'rm -rf .git/refs/original', if for some bizarre reason gc has packed the .refs/original refs then I might do something like the above or edit .git/packed-refs

How about 'git update-ref -dr refs/original' (and making that work) ?
Sam
Message 1 of 1 in “Suggested command in git-filter-branch(1)”
  1. Sam VilainJun 20, 2010

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.