From: "Sverre Rabbelier" <alturin@gmail.com>
To: Marcus <prima@wordit.com>
Cc: git@vger.kernel.org
Subject: Re: Reverting to old commit
Date: Tue, 27 May 2008 21:32:13 +0200 [thread overview]
Message-ID: <bd6139dc0805271232x53e91c0fx699c1ea0769e50ec@mail.gmail.com> (raw)
In-Reply-To: <8345bd80805271050q7412917bt292a276fbbe6aed3@mail.gmail.com>
On Tue, May 27, 2008 at 7:50 PM, Marcus <prima@wordit.com> wrote:
> 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?
Have a look at the reflog (git reflog) perhaps combined with "git log
-p" which will show the changes each commit introduced as well.
--
Cheers,
Sverre Rabbelier
next prev parent reply other threads:[~2008-05-27 19:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-27 17:50 Reverting to old commit Marcus
2008-05-27 18:09 ` Jakub Narebski
2008-05-27 20:43 ` Brandon Casey
2008-05-27 23:00 ` Sverre Rabbelier
2008-05-27 19:32 ` Sverre Rabbelier [this message]
2008-05-27 20:02 ` Dirk Süsserott
2008-05-27 20:17 ` Paolo Bonzini
2008-05-27 20:41 ` Robin Rosenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd6139dc0805271232x53e91c0fx699c1ea0769e50ec@mail.gmail.com \
--to=alturin@gmail.com \
--cc=git@vger.kernel.org \
--cc=prima@wordit.com \
--cc=sverre@rabbelier.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).