Skip to content

Instantly share code, notes, and snippets.

@Melonbwead
Created April 17, 2014 16:13
Show Gist options
  • Save Melonbwead/10995175 to your computer and use it in GitHub Desktop.
Save Melonbwead/10995175 to your computer and use it in GitHub Desktop.
git scrub out files entirely
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch node_modules/*' \
--prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment