tjrobinson.net

Rewriting git history - removing a directory

January 12, 2016

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

git push origin master -force


Tom Robinson

I'm a software developer and this is my technology and coding blog.