Skip to content

Instantly share code, notes, and snippets.

@brantfaircloth
brantfaircloth / remove-git-file.sh
Created August 24, 2013 21:14
Remove file permanently from git
# blackhole the content
git filter-branch --tree-filter 'rm -rf my/folder' HEAD
# force the update
git push origin master --force