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

Commit to more than one branch at once?

From
SRStefan Richter <stefanr@s5r6.in-berlin.de>
Date
Oct 6, 2006, 18:18 UTC
Message-ID
<45269E02.50407@s5r6.in-berlin.de>
Hi all,

if I git-cherry-pick a commit from branch A into branch B, this is shown as a difference in "git-log B..A".

Is it possible to commit a change to two or more branches but preserve the identity of the change? IOW, is there an alternative to git-cherry-pick that does not have above mentioned side effect?

-- 
Stefan Richter
-=====-=-==- =-=- --==-
http://arcgraph.de/sr/
Next: Linus Torvalds
Message 1 of 5 in “Commit to more than one branch at once?”
  1. Stefan RichterOct 6, 2006
  2. Linus TorvaldsOct 6, 2006
  3. SeanOct 6, 2006
  4. Stefan RichterOct 6, 2006
  5. Petr BaudisOct 6, 2006

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.