threads / discuss / 24154

Suggested command in git-filter-branch(1)

Subject: Suggested command in git-filter-branch(1)

## tl;dr

One message between Jun 20, 2010 and Jun 20, 2010.

replies: 0people: 1as markdown or json

Sam Vilain· Jun 20, 2010, 08:31 UTC · lore
+* 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

← back to recent threads