Does it work even if the original cloned branch is off of (P),
i'm just trying to understand how and why this can work.

(Ma) is Machine A
(Mb) is Machine B

(P) - parent branch

Ma - clone P, call it Pa
     - create private branch Pva in the same tree,  i want to set the 
remote as (Pb)

Mb - Clone P, call it Pb

I'm just trying to understand if the above is valid configuration ? thanks 
a lot for your help.

On Tuesday, July 21, 2015 at 8:07:13 PM UTC+5:30, Magnus Therning wrote:
> On Mon, Jul 20, 2015 at 11:51:10PM -0700, dexter ietf wrote: 
> > Hi, 
> > 
> > i want to add a remote for a private branch. i have a parent 
> > repository call it (P).  and two clones of P on different machines 
> > (a) and (b), call it Pa and Pb.  now in machine (a) i want to create 
> > a private branch tracking Pb, how do i go about achieving this, any 
> > help is appreciated.. thanks! 
> Add the remote using `git remote add ...`, then use `git fetch <name 
> of remote>` to get the changesets, and then just check out the branch 
> you want using `git checkout --track <name of remote branch>`. 
> You should find this information easily in any online git tutorial, 
> e.g. here 
> /M 
> -- 
> Magnus Therning                      OpenPGP: 0xAB4DFBA4 
> email: <javascript:>   jabber: 
> <javascript:> 
> twitter: magthe      
> The British have "the perfect temperament to be hackers--technically 
> skilled, slightly disrespectful of authority, and just a touch of 
> criminal behavior". 
>      -- Mary Ann Davidson, Oracle's Security Chief 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to