From: Jeff King <peff@peff.net>
To: Bill Lear <rael@zopyra.com>
Cc: git@vger.kernel.org
Subject: Re: Stupid question on getting branch from yesterday
Date: Wed, 14 Feb 2007 15:36:26 -0500 [thread overview]
Message-ID: <20070214203626.GB14729@coredump.intra.peff.net> (raw)
In-Reply-To: <17875.28901.705687.843342@lisa.zopyra.com>
On Wed, Feb 14, 2007 at 02:28:21PM -0600, Bill Lear wrote:
> >Use `git checkout <SHA>` which will detach your HEAD and seek to
> >the commit, leaving your current commit alone. Later you can get
> >back by `git checkout oldbranch`.
>
> BTW, we are still using 1.4.4.1. This will work with that?
No. Detached HEAD is a 1.5 thing.
> Another BTW: this seems very similar to something that you would
> tackle with git bisect (haven't used that yet), but as I understand
> it, git bisect works on tags(??).
It can work on arbitrary commits. You can either pick the commit out of
git-log or gitk manually, or you can use your reflog:
git bisect start
git bisect good master@{2.days.ago}
git bisect bad
-Peff
next prev parent reply other threads:[~2007-02-14 20:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 19:38 Stupid question on getting branch from yesterday Bill Lear
2007-02-14 19:49 ` Shawn O. Pearce
2007-02-14 19:54 ` Junio C Hamano
2007-02-14 20:24 ` Bill Lear
2007-02-14 20:28 ` Bill Lear
2007-02-14 20:36 ` Jeff King [this message]
2007-02-14 19:50 ` Junio C Hamano
2007-02-14 21:13 ` Linus Torvalds
2007-02-14 21:25 ` Junio C Hamano
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=20070214203626.GB14729@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=rael@zopyra.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.