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

merging branch

From
Mathieu Malaterre <mathieu.malaterre@gmail.com>
Date
Jan 24, 2011, 11:33 UTC
Message-ID
<AANLkTinKt0pi_1NaEJY8-c1B3SKsWdxqEyTvJiGL-vYj@mail.gmail.com>
Hi,
  I have the following branches:
$ git branch
* master
  release
  I have messed up my 'release' branch by manually importing file one
by one using: git checkout release && git checkout master my_file.cxx
  So now I'd like to merge back release to master. I tried:

$ git checkout master && git merge -s ours release $ git status # On branch master # Your branch is ahead of 'origin/master' by 27 commits. # nothing to commit (working directory clean) $ git diff origin/master..master -> return nothing

Since most of those commits will be redundant, I need to 'git pull --rebase', right ? However I did not understand how to pass the --interactive option to git pull --rebase to split this set of 27 commits (I'd like to discard at least one large one)

Thanks !
-- 
Mathieu
Message 1 of 1 in “merging branch”
  1. Mathieu MalaterreJan 24, 2011

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.