Skip to content

Instantly share code, notes, and snippets.

@chrismatthieu
Created May 25, 2011 23:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismatthieu/992261 to your computer and use it in GitHub Desktop.
Save chrismatthieu/992261 to your computer and use it in GitHub Desktop.
If you ever need to remove files from your GitHub repo's history, here's how to do it:
1. add all of the files you want to hide to .gitignore
2. git commit -a -m "removed files"
3. git filter-branch
4. git push origin master -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment