Git - How to remove a directory in my GitHub repository. How do you discard unstaged changes in git. Version control - How do I revert all local changes in a GIT managed project to previous state. Permanently remove files and folders from a git repository. Note: In this blog post the operations that are presented will override git history.
Be careful what you're doing and backup your repo if you're not sure what you're doing. Few weeks ago I froze gems on my blog and ended up with a very big repository.