git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Stupid question on getting branch from yesterday

From
Jeff King <peff@peff.net>
Date
Feb 14, 2007, 20:36 UTC
Message-ID
<20070214203626.GB14729@coredump.intra.peff.net>
In-Reply-To
<17875.28901.705687.843342@lisa.zopyra.com>
On Wed, Feb 14, 2007 at 02:28:21PM -0600, Bill Lear wrote:
Show 5 quoted lines
> >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
Previous: Bill LearNext: Junio C Hamano
Message 6 of 9 in “Stupid question on getting branch from yesterday”
  1. Bill LearFeb 14, 2007
  2. Shawn O. PearceFeb 14, 2007
  3. Junio C HamanoFeb 14, 2007
  4. Bill LearFeb 14, 2007
  5. Bill LearFeb 14, 2007
  6. Jeff KingFeb 14, 2007
  7. Junio C HamanoFeb 14, 2007
  8. Linus TorvaldsFeb 14, 2007
  9. Junio C HamanoFeb 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.