Skip to contentSkip to conversation

Suggested command in git-filter-branch(1)

DISCUSSION Sam Vilain 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Sam Vilain

author
#0 lore raw

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