Skip to content

Instantly share code, notes, and snippets.

@airhorns
Created March 8, 2010 21:33
Show Gist options
  • Save airhorns/325776 to your computer and use it in GitHub Desktop.
Save airhorns/325776 to your computer and use it in GitHub Desktop.
git filter-branch -f --index-filter 'git update-index --remove public/images/posters/fc1cc0358623559b6935b22e56d136a3.jpg'
git filter-branch -f --index-filter 'git update-index --remove public/images/posters/f9dea1841c49c481ea6de11ad37b7c92.jpg'
.
.
.
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune
git push --force --verbose --dry-run
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment