Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
remove node_modules from git history
git filter-branch --tree-filter 'rm -rf node_modules' HEAD
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment