Created
May 25, 2011 23:57
-
-
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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