Created
July 3, 2011 20:00
-
-
Save jskripsky/1062555 to your computer and use it in GitHub Desktop.
Git invocations to clean up SEO report history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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