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

Re: "Not currently on any branch"

From
Sean Estabrooks <seanlkml@sympatico.ca>
Date
Oct 2, 2009, 23:15 UTC
Message-ID
<BLU0-SMTP927FF0174DF8AAD58644A8AED20@phx.gbl>
In-Reply-To
<81b0412b0910021446nb07e7e9l465f588168297fe9@mail.gmail.com>

On Fri, 2 Oct 2009 23:46:53 +0200 Alex Riesen <raa.lkml@gmail.com> wrote:

Show 10 quoted lines
> On Fri, Oct 2, 2009 at 22:08, Tim <timothyjwashington@yahoo.ca> wrote:
> > What's the most straightforward & cleanest way to merge my changes in the
> > headless branch to my 'ui-integration' branch?
> 
> Assuming you use a Bourne shell:
> 
> $ prev=$(git rev-parse HEAD)
> $ git checkout ui-integration && git merge $prev
> 
> 

You could also rely on the reflog to avoid the need to store off the previous HEAD value, so just:

$ git checkout ui-integration && git merge HEAD@{1}
Sean
Previous: Alex RiesenNext: Clemens Buchacher
Message 4 of 5 in “"Not currently on any branch"”
  1. TimOct 2, 2009
  2. Steven NoonanOct 2, 2009
  3. Alex RiesenOct 2, 2009
  4. Sean EstabrooksOct 2, 2009
  5. Clemens BuchacherOct 4, 2009

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.