tjrobinson.net

Rewriting git history - removing a directory

January 2016

git filter-branch -force -index-filter ‘git rm -cached -r -ignore-unmatch directoryToRemove’ -prune-empty — -all

git push origin master -force