Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created July 18, 2017 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsbt/b932bf64661f204539bfa707cff2625d to your computer and use it in GitHub Desktop.
Save hsbt/b932bf64661f204539bfa707cff2625d to your computer and use it in GitHub Desktop.
~/D/g/r/scanf (master) > git filter-branch --prune-empty --index-filter '
git rm --cached -qr --ignore-unmatch . &&
git reset -q $GIT_COMMIT -- ext/stringio test/stringio &&
git rm --cached -qr --ignore-unmatch ext/stringio/depend ext/stringio/.cvsignore
' -- HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment