On Jan 24, 2008 3:16 PM, Brian Paul <[EMAIL PROTECTED]> wrote: > > Is there some kind of git-reset that'll restore my repo to the state > before the accidental push? I've shot myself in the foot with git-reset > in the past and usually recover rm'ing the repo and starting over.
It's kind of hard to say. I would probably backup your repo before doing anything. Or, at least copy your work onto another branch first `git checkout -b before-reset; git checkout <the branch you were on before>'. Then have a look at `git reflog'. That will print out a long list of sha1s and commit identifiers at each of your actions. Hopefully one of those actions will represent a safe spot you were at, although it doesn't seem that pushes get into the log. Then `git reset' to '[EMAIL PROTECTED]'. Hopefully that will take care of it. You may need --hard. I'm sure there's a way to get back, but it may need more of a git guru. I've definitely undone some damage with git reflog, though. -- Dan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
