Re: Rollback of git commands
- From
Nicolas Pitre <nico@cam.org>
- Date
- Nov 28, 2007, 14:53 UTC
- Message-ID
- <alpine.LFD.0.99999.0711280951150.9605@xanadu.home>
- In-Reply-To
- <9e4733910711272037r2ce3ed01y31ec8531f5803efe@mail.gmail.com>
On Tue, 27 Nov 2007, Jon Smirl wrote:
Show 7 quoted lines
> Of course you've never screwed up a repository using git commands, > right? I've messed up plenty. A good way to mess up a repo is to get > the data in .git/* out of sync with what is in the repo. I'm getting > good enough with git that I can fix most mess up with a few edits, but > it took me two years to get to that point. Rolling back to a check > point is way easier. User error and a command failing are both equally > valid ways to mess up a repo.
The reflog contains all your check points, for every modifications you make, even the stupid ones. You should look at it.
Nicolas