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

Re: Committing a change from one branch another branch

From
Brandon McCaig <bamccaig@gmail.com>
Date
Mar 13, 2014, 15:36 UTC
Message-ID
<CANUGeEZc8BoV0MxUGRRGc8SK=-xB2YXoEkRkBTyGZ8FxSjnVTQ@mail.gmail.com>
In-Reply-To
<CAD6G_RRQVDxQj==-2vAT3WCiYMC=BmZhi__JWi4yy86Uaoa-og@mail.gmail.com>
Jagan:
On Thu, Mar 13, 2014 at 4:56 AM, Jagan Teki <jagannadh.teki@gmail.com> wrote:
> Hi,
Hello,
Show 22 quoted lines
> I have two branches.
> - master-b1
> - master-b2
>
> Suppose I'm in master-b1 then did a change
> on master-b1
> $ git add test/init.c
> $ git commit -s -m "init.c Changed!"
> $ git log
> Author: Jagan Teki <jagannadh.teki@gmail.com>
> Date:   Thu Mar 13 00:48:44 2014 -0700
>
> init.c Changed!
>
> $ git checkout master-b2
> $ git log
> Author: Jagan Teki <jagannadh.teki@gmail.com>
> Date:   Thu Mar 13 00:48:44 2014 -0700
>
> init.c Changed!
>
> How can we do this, any idea?

What you're asking is ambiguous and vague. The example output that you give doesn't even really make sense. You need to give more details about what you have and what you want to do to get proper help.

Or join #git on irc.freenode.net for real-time help if you aren't sure how to explain it.

Regards,
-- 
Brandon McCaig <bamccaig@gmail.com> <bamccaig@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'
Previous: Andreas SchwabNext: Jagan Teki
Message 3 of 4 in “Committing a change from one branch another branch”
  1. Jagan TekiMar 13, 2014
  2. Andreas SchwabMar 13, 2014
  3. Brandon McCaigMar 13, 2014
  4. Jagan TekiMar 14, 2014

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.