Created
January 17, 2019 15:17
-
-
Save ZachWatkins/2e5ab3ca4fd2272cd4a013a7d73d9b1e to your computer and use it in GitHub Desktop.
Remove folder from github history and push changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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