From: Sean Estabrooks Date: Fri, 02 Oct 2009 23:15:37 GMT Subject: Re: "Not currently on any branch" Message-ID: In-Reply-To: <81b0412b0910021446nb07e7e9l465f588168297fe9@mail.gmail.com> On Fri, 2 Oct 2009 23:46:53 +0200 Alex Riesen wrote: > On Fri, Oct 2, 2009 at 22:08, Tim 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