{"thread":{"id":"24154","subject":"Suggested command in git-filter-branch(1)","startedAt":"2010-06-20T08:31:04Z","lastAt":"2010-06-20T08:31:04Z","messageCount":1,"participants":["Sam Vilain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"143950","messageId":"1277022664.3728.1.camel@denix","threadId":"24154","inReplyTo":null,"subject":"Suggested command in git-filter-branch(1)","fromName":"Sam Vilain","fromEmail":"sam@vilain.net","sentAt":"2010-06-20T08:31:04Z","receivedAt":"2010-06-20T08:31:04Z","isPatch":false,"sender":{"key":"sam@vilain.net","avatar":"https://gravatar.com/avatar/8fc840ca854dbf6f7065b4335e3b934951c1dca3b11db688e95e471901f8f4a8?d=mp&s=160"},"body":"+* Remove the original refs backed up by git-filter-branch: say `git\n+  for-each-ref \\--format=\"%(refname)\" refs/original/ | xargs -n 1 git\n+  update-ref -d`.\n\nThis is sick.  I would normally just tell people to use 'rm\n-rf .git/refs/original', if for some bizarre reason gc has packed\nthe .refs/original refs then I might do something like the above or\nedit .git/packed-refs\n\nHow about 'git update-ref -dr refs/original' (and making that work) ?\n\nSam\n"}]}