Re: Committing a change from one branch another branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jagan:

On Thu, Mar 13, 2014 at 4:56 AM, Jagan Teki <jagannadh.teki@xxxxxxxxx> wrote:
> Hi,

Hello,

> 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@xxxxxxxxx>
> Date:   Thu Mar 13 00:48:44 2014 -0700
>
> init.c Changed!
>
> $ git checkout master-b2
> $ git log
> Author: Jagan Teki <jagannadh.teki@xxxxxxxxx>
> 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@xxxxxxxxx> <bamccaig@xxxxxxxxxxxxxxxx>
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'
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]