# Suggested command in git-filter-branch(1)

1 messages from 2010-06-20 to 2010-06-20. Participants: Sam Vilain.
Thread: https://gitlist.dev/t/24154

## Sam Vilain, 2010-06-20 08:31

Subject: Suggested command in git-filter-branch(1)
Message-ID: <1277022664.3728.1.camel@denix>
URL: https://gitlist.dev/e/1277022664.3728.1.camel%40denix

```
+* 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

```
