Skip to content

Instantly share code, notes, and snippets.

@gnomeria
Created September 4, 2019 19:34
Show Gist options
  • Save gnomeria/ec1cda3db8252cda154bb1a122c34b76 to your computer and use it in GitHub Desktop.
Save gnomeria/ec1cda3db8252cda154bb1a122c34b76 to your computer and use it in GitHub Desktop.
Rewrite history by removing files/folders
git filter-branch -f --index-filter 'git rm -r --cached --ignore-unmatch main vendor/' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment