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

Re: request for documentation about branch surgery

From
Elijah Newren <newren@gmail.com>
Date
Jul 7, 2009, 03:45 UTC
Message-ID
<51419b2c0907062045p648d5478x88515261249a2d79@mail.gmail.com>
In-Reply-To
<51419b2c0907061930k71e20b42rb347b9ab8923e437@mail.gmail.com>
On Mon, Jul 6, 2009 at 8:30 PM, Elijah Newren<newren@gmail.com> wrote:
Show 8 quoted lines
>>  This is achieved by
>>
>>    $ git checkout master
>>    $ git reset --hard E      # Cut the branch "master"
>>    $ git merge released      # Copy commits from branch "released" to "master"
>
> I'm assuming master isn't checked out.  If so, the following is faster:
>  $ git branch -f master E
Sorry, I meant
  $ git branch -f master released
because we want to set master to the tip of the released branch, not to E.
> (If master is checked out, just 'git reset ---hard released')
>
Previous: Elijah NewrenNext: Bruno Haible
Message 3 of 10 in “request for documentation about branch surgery”
  1. Bruno HaibleJul 6, 2009
  2. Elijah NewrenJul 7, 2009
  3. Elijah NewrenJul 7, 2009
  4. Bruno HaibleJul 7, 2009
  5. Andreas EricssonJul 7, 2009
  6. Junio C HamanoJul 7, 2009
  7. Bruno HaibleJul 7, 2009
  8. Andreas EricssonJul 7, 2009
  9. Junio C HamanoJul 7, 2009
  10. Daniel BarkalowJul 7, 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.