How to Reset Your Git Repository When You’ve Really Screwed Up There are moments in development when mistakes happen—perhaps you’ve accidentally committed sensitive data into your repository, and now the entire commit history is a liability. Fortunately, Git offers some powerful methods to completely erase your project’s past while preserving the current state of your work. In this post, we’ll explore two reliable techniques to help you reset your repository and start fresh.