Skip to content

Instantly share code, notes, and snippets.

@jskripsky
Created July 3, 2011 20:00
Show Gist options
  • Save jskripsky/1062555 to your computer and use it in GitHub Desktop.
Save jskripsky/1062555 to your computer and use it in GitHub Desktop.
Git invocations to clean up SEO report history
#!/bin/bash
git filter-branch --force --prune-empty --tree-filter "sort pageranks.txt -o pageranks.txt || true {} \;"
git filter-branch --force --prune-empty --tree-filter "find -name "*.xml" -exec sed -i -e 's/us-ascii/utf-8/' {} \;"
#if [ -e pageranks.txtx ]; then echo "ok"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment