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

Re[2]: put THEIR commits AFTER my commits with a single rebase command

From
IBIlya Basin <basinilya@gmail.com>
Date
Apr 18, 2013, 08:33 UTC
Message-ID
<1949082828.20130418123321@gmail.com>
In-Reply-To
<516F9329.4060405@viscovery.net>
JS> Perhaps this one:

JS> git merge origin/master JS> git rebase ORIG_HEAD

JS> -- Hannes
Wouldn't I have to resolve conflicts twice?

BTW, during the rebase, can I tell git to rewrite a different branch upon rebase success or abort?

    git branch -f tmp origin/master
    git rebase --onto master master tmp
    if [ $? -ne 0 ]; then
       # modify some file in .git/ ?
    else
        git branch -f master
        git checkout master
    fi
Previous: Johannes SixtNext: Johannes Sixt
Message 5 of 6 in “put THEIR commits AFTER my commits with a single rebase command”
  1. Ilya BasinApr 18, 2013
  2. Johan HerlandApr 18, 2013
  3. Re[2]: put THEIR commits AFTER my commits with a single rebase commandIlya Basin, Apr 18, 2013
  4. Johannes SixtApr 18, 2013
  5. Re[2]: put THEIR commits AFTER my commits with a single rebase commandIlya Basin, Apr 18, 2013
  6. Johannes SixtApr 18, 2013

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.