git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Committing a change from one branch another branch
@ 2014-03-13  9:56 Jagan Teki
  2014-03-13 10:21 ` Andreas Schwab
  2014-03-13 15:36 ` Brandon McCaig
  0 siblings, 2 replies; 4+ messages in thread
From: Jagan Teki @ 2014-03-13  9:56 UTC (permalink / raw)
  To: git

Hi,

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?

-- 
Jagan.

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

end of thread, other threads:[~2014-03-14  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13  9:56 Committing a change from one branch another branch Jagan Teki
2014-03-13 10:21 ` Andreas Schwab
2014-03-13 15:36 ` Brandon McCaig
2014-03-14  9:34   ` Jagan Teki

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).