Skip to content

Instantly share code, notes, and snippets.

@brantfaircloth
Created August 24, 2013 21:14
Show Gist options
  • Save brantfaircloth/6330447 to your computer and use it in GitHub Desktop.
Save brantfaircloth/6330447 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment