Re: Reverting to old commit
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- May 27, 2008, 20:43 UTC
- Message-ID
- <6IRlPIxadiyIIPsto-MFx6wInl0VvCRxVSaI3-OglmCjLt5obfbiww@cipher.nrlssc.navy.mil>
- In-Reply-To
- <m3bq2r39gh.fsf@localhost.localdomain>
Jakub Narebski wrote:
Show 14 quoted lines
> Marcus <prima@wordit.com> writes: > >> Newbie question: What's the simplest way to find an old commit and revert? >> >> Say you have a version from yesterday which worked and today's >> experiments failed, so you want to go back to that working version. >> Unfortunately, it's not tagged. Instead you need to actually view the >> code to identify the version you want. I thought maybe gitk might >> help, but I can't find my way with gitk. I hoped you could browse >> revisions easier in a GUI and tell gitk or git-gui to revert? > > Errr... isn't it what git-bisect is for? > > If it is not, viewing git-log, or git-reflog output should help...
Shouldn't we be encouraging the use of 'git log -g' rather than 'git reflog'? git-reflog seems more like plumbing than porcelain to me.
-brandon