Skip to content

Instantly share code, notes, and snippets.

@ZachWatkins
Created January 17, 2019 15:17
Show Gist options
  • Save ZachWatkins/2e5ab3ca4fd2272cd4a013a7d73d9b1e to your computer and use it in GitHub Desktop.
Save ZachWatkins/2e5ab3ca4fd2272cd4a013a7d73d9b1e to your computer and use it in GitHub Desktop.
Remove folder from github history and push changes
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch vendor -r' \
--prune-empty --tag-name-filter cat -- --all
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment