Gentoo Archives: gentoo-science

From: "François Bissey" <frp.bissey@×××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] overlay and github out of sync again
Date: Wed, 02 Jul 2014 21:38:09
Message-Id: 1582389.NTveU3XaWY@qcd-nzi3
In Reply to: Re: [gentoo-science] overlay and github out of sync again by "François Bissey"
1 On Thu, 03 Jul 2014 09:25:47 François Bissey wrote:
2 > On Wed, 02 Jul 2014 15:12:27 Justin wrote:
3 > > On 02/07/14 13:32, Jauhien Piatlicki wrote:
4 > > > Hi,
5 > > >
6 > > > On 07/02/2014 01:19 PM, François Bissey wrote:
7 > > >> Consider that I am the village idiot, you have to explain to me how you
8 > > >> integrated the two branches that each had a commit that the other
9 > > >> didn’t
10 > > >> have.
11 > > >
12 > > > quite simple ;-)
13 > > >
14 > > > consider you have two branches in your local repo: github-master and
15 > > > gentoo-master, and you have two remotes: github and gentoo. Then you do
16 > > >
17 > > > something like:
18 > > > git checkout github-master
19 > > > git pull
20 > > > git checkout gentoo-master
21 > > > git pull
22 > > >
23 > > > Now your local branches are in sync with remote, you can do merging
24 > > >
25 > > > git checkout github-master
26 > > > git merge gentoo-master
27 > > > git push github github-master:master
28 > > >
29 > > > git checkout gentoo-master
30 > > > git merge github-master
31 > > > git push gentoo gentoo-master:master
32 > > >
33 > > > You can do it with less commands, but I've written it this way, so
34 > > > everything should be completely clear. )
35 > > >
36 > > > Regards,
37 > > > Jauhien
38 > >
39 > > Hey guys,
40 > >
41 > > as I wrote some month ago, I placed a script into the script dir called
42 > > "merge-dualHEAD" which we can use for syncing.
43 >
44 > Can we put a note on the github wiki about it then? Because I remembered
45 > there was something on the mailing list but yes it was months ago. Possibly
46 > a couple of years even.
47 >
48 Ok only 5 months :)