git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 1 patch to two branches
@ 2011-03-03 12:46 allstars
  2011-03-07  0:56 ` Neal Kreitzinger
  0 siblings, 1 reply; 2+ messages in thread
From: allstars @ 2011-03-03 12:46 UTC (permalink / raw)
  To: git

hi
my case is as follows
I have two branches
basically they are the same, except they differ from different package
name(java) and namespace(cpp) due to customer request

but now I have a fix , say a patch
I want to commit it to both branches

but I am lazy so I just want to do just one 'git commit' and 'git
push'

so I am thinking using a githook in remote server
and each commit to branch A can also commit to branch B as well

but I am not quite sure what I should use in the hook

git rebase , git merge or git cherry pick ?

seems these 3 ways all lead to the same result
but I dont know which is better and why


thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-07  0:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 12:46 1 patch to two branches allstars
2011-03-07  0:56 ` Neal Kreitzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).