# how to track multiple upstreams in one repository

13 messages from 2009-01-19 to 2009-01-21. Participants: david@lang.hm, A Large Angry SCM, Bryan Donlan, Ciprian Dorin, Craciun, Julian Phillips, Greg KH, Miklos Vajna.
Thread: https://gitlist.dev/t/17241

## Bryan Donlan, 2009-01-19 02:14

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <20090119021426.GA21999@shion.is.fushizen.net>
URL: https://gitlist.dev/e/20090119021426.GA21999%40shion.is.fushizen.net
In-Reply-To: <alpine.DEB.1.10.0901181855400.20741@asgard.lang.hm>

```
On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote:
> for linux I want to track both the linus tree and the -stable tree.  
> Ideally I want to be able to do a checkout of tags from either tree from  
> the same directory (along with diffs between items in both trees, etc)
>
> I have found documentation on how to clone from each of them, but I  
> haven't found any simple documentation on how to work with both of them.

After cloning from one:
git remote add remotename git://...
git fetch remotename

You will now have the other repository fetched into your local
repository; tags from both will be replicated to your local tags.

```

## A Large Angry SCM, 2009-01-19 02:18

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <4973E2F7.2090104@gmail.com>
URL: https://gitlist.dev/e/4973E2F7.2090104%40gmail.com
In-Reply-To: <alpine.DEB.1.10.0901181855400.20741@asgard.lang.hm>

```
david@lang.hm wrote:
> for linux I want to track both the linus tree and the -stable tree. 
> Ideally I want to be able to do a checkout of tags from either tree from 
> the same directory (along with diffs between items in both trees, etc)
> 
> I have found documentation on how to clone from each of them, but I 
> haven't found any simple documentation on how to work with both of them.

Attached are what I use. It's not pretty but it's works for me; YMMV.


export GIT_COMMITTER_NAME="@"
export GIT_AUTHOR_NAME="@"

./fred.sh git://git.kernel.org/pub/scm/git/git.git git/git

./fred.sh git://git.kernel.org/pub/scm/gitk/gitk.git gitk/gitk

./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/sparse.git torvalds/sparse

./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git torvalds/linux-2.6

./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.11.y.git stable/linux-2.6.11.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.12.y.git stable/linux-2.6.12.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.13.y.git stable/linux-2.6.13.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.14.y.git stable/linux-2.6.14.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.15.y.git stable/linux-2.6.15.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git stable/linux-2.6.16.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.17.y.git stable/linux-2.6.17.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.18.y.git stable/linux-2.6.18.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.19.y.git stable/linux-2.6.19.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.20.y.git stable/linux-2.6.20.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.21.y.git stable/linux-2.6.21.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.22.y.git stable/linux-2.6.22.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.23.y.git stable/linux-2.6.23.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.24.y.git stable/linux-2.6.24.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.25.y.git stable/linux-2.6.25.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.26.y.git stable/linux-2.6.26.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git stable/linux-2.6.27.y
./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.28.y.git stable/linux-2.6.28.y

./fred.sh git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git tglx/history


```

## david@lang.hm, 2009-01-19 02:58

Subject: how to track multiple upstreams in one repository
Message-ID: <alpine.DEB.1.10.0901181855400.20741@asgard.lang.hm>
URL: https://gitlist.dev/e/alpine.DEB.1.10.0901181855400.20741%40asgard.lang.hm

```
for linux I want to track both the linus tree and the -stable tree. 
Ideally I want to be able to do a checkout of tags from either tree from 
the same directory (along with diffs between items in both trees, etc)

I have found documentation on how to clone from each of them, but I 
haven't found any simple documentation on how to work with both of them.

David Lang

```

## david@lang.hm, 2009-01-19 03:58

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <alpine.DEB.1.10.0901181957070.20741@asgard.lang.hm>
URL: https://gitlist.dev/e/alpine.DEB.1.10.0901181957070.20741%40asgard.lang.hm
In-Reply-To: <20090119021426.GA21999@shion.is.fushizen.net>

```
On Sun, 18 Jan 2009, Bryan Donlan wrote:

> On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote:
>> for linux I want to track both the linus tree and the -stable tree.
>> Ideally I want to be able to do a checkout of tags from either tree from
>> the same directory (along with diffs between items in both trees, etc)
>>
>> I have found documentation on how to clone from each of them, but I
>> haven't found any simple documentation on how to work with both of them.
>
> After cloning from one:
> git remote add remotename git://...
> git fetch remotename
>
> You will now have the other repository fetched into your local
> repository; tags from both will be replicated to your local tags.

thanks, given the nature of git I figured it was something really simple, 
but I just wasn't able to find it.

I've forwarded this to the kernel.org webmaster to update the 'how to 
follow linux development' page

David Lang

```

## Ciprian Dorin, Craciun, 2009-01-19 07:52

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <8e04b5820901182352n29b3885cj850e6ddae6ca237f@mail.gmail.com>
URL: https://gitlist.dev/e/8e04b5820901182352n29b3885cj850e6ddae6ca237f%40mail.gmail.com
In-Reply-To: <alpine.DEB.1.10.0901181957070.20741@asgard.lang.hm>

```
On Mon, Jan 19, 2009 at 5:58 AM,  <david@lang.hm> wrote:
> On Sun, 18 Jan 2009, Bryan Donlan wrote:
>
>> On Sun, Jan 18, 2009 at 06:58:06PM -0800, david@lang.hm wrote:
>>>
>>> for linux I want to track both the linus tree and the -stable tree.
>>> Ideally I want to be able to do a checkout of tags from either tree from
>>> the same directory (along with diffs between items in both trees, etc)
>>>
>>> I have found documentation on how to clone from each of them, but I
>>> haven't found any simple documentation on how to work with both of them.
>>
>> After cloning from one:
>> git remote add remotename git://...
>> git fetch remotename
>>
>> You will now have the other repository fetched into your local
>> repository; tags from both will be replicated to your local tags.
>
> thanks, given the nature of git I figured it was something really simple,
> but I just wasn't able to find it.
>
> I've forwarded this to the kernel.org webmaster to update the 'how to follow
> linux development' page
>
> David Lang

    I use something even simpler, please see the attached .git/config
file that I use. It also uses remote branches, and rewrites the refs
to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also
in order to fetch them I use git fetch stable/v2.6.25

    Ciprian Craciun.

```

## Julian Phillips, 2009-01-19 16:29

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <alpine.LNX.2.00.0901191627480.4115@reaper.quantumfyre.co.uk>
URL: https://gitlist.dev/e/alpine.LNX.2.00.0901191627480.4115%40reaper.quantumfyre.co.uk
In-Reply-To: <alpine.DEB.1.10.0901181855400.20741@asgard.lang.hm>

```
On Sun, 18 Jan 2009, david@lang.hm wrote:

> for linux I want to track both the linus tree and the -stable tree. Ideally I 
> want to be able to do a checkout of tags from either tree from the same 
> directory (along with diffs between items in both trees, etc)
>
> I have found documentation on how to clone from each of them, but I haven't 
> found any simple documentation on how to work with both of them.

You could always just use 
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git 
?  It already contains both the linus tree and all the stable trees ...

>
> David Lang
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>

-- 
Julian

  ---
Flattery is like cologne -- to be smelled, but not swallowed.
 		-- Josh Billings

```

## Julian Phillips, 2009-01-19 20:45

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <alpine.LNX.2.00.0901192044060.6108@reaper.quantumfyre.co.uk>
URL: https://gitlist.dev/e/alpine.LNX.2.00.0901192044060.6108%40reaper.quantumfyre.co.uk
In-Reply-To: <alpine.DEB.1.10.0901191308030.2428@asgard.lang.hm>

```
On Mon, 19 Jan 2009, david@lang.hm wrote:

> On Mon, 19 Jan 2009, Julian Phillips wrote:
>
>>  On Sun, 18 Jan 2009, david@lang.hm wrote:
>> 
>> >  for linux I want to track both the linus tree and the -stable tree. 
>> >  Ideally I want to be able to do a checkout of tags from either tree from 
>> >  the same directory (along with diffs between items in both trees, etc)
>> > 
>> >  I have found documentation on how to clone from each of them, but I 
>> >  haven't found any simple documentation on how to work with both of them.
>>
>>  You could always just use
>>  git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git
>>  ? It already contains both the linus tree and all the stable trees ...
>
> I know it contains the releases, but does it contain the -rc trees?

It seems to contain everything from the main Linus tree as far as I can 
see from the gitweb (haven't actually used it for kernel work).

>
> David Lang
>
>

-- 
Julian

  ---
Stock's Observation:
 	You no sooner get your head above water but what someone pulls
 	your flippers off.

```

## david@lang.hm, 2009-01-19 21:08

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <alpine.DEB.1.10.0901191308030.2428@asgard.lang.hm>
URL: https://gitlist.dev/e/alpine.DEB.1.10.0901191308030.2428%40asgard.lang.hm
In-Reply-To: <alpine.LNX.2.00.0901191627480.4115@reaper.quantumfyre.co.uk>

```
On Mon, 19 Jan 2009, Julian Phillips wrote:

> On Sun, 18 Jan 2009, david@lang.hm wrote:
>
>> for linux I want to track both the linus tree and the -stable tree. Ideally 
>> I want to be able to do a checkout of tags from either tree from the same 
>> directory (along with diffs between items in both trees, etc)
>> 
>> I have found documentation on how to clone from each of them, but I haven't 
>> found any simple documentation on how to work with both of them.
>
> You could always just use 
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git ? 
> It already contains both the linus tree and all the stable trees ...

I know it contains the releases, but does it contain the -rc trees?

David Lang

```

## Greg KH, 2009-01-20 03:34

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <20090120033402.GC8754@kroah.com>
URL: https://gitlist.dev/e/20090120033402.GC8754%40kroah.com
In-Reply-To: <8e04b5820901182352n29b3885cj850e6ddae6ca237f@mail.gmail.com>

```
On Mon, Jan 19, 2009 at 09:52:16AM +0200, Ciprian Dorin, Craciun wrote:
>     I use something even simpler, please see the attached .git/config
> file that I use. It also uses remote branches, and rewrites the refs
> to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also
> in order to fetch them I use git fetch stable/v2.6.25

You all do know that all of the -stable trees are automatically kept in
one repo on kernel.org, so you don't have to jump through all of these
hoops, right?

confused,

greg k-h

```

## Ciprian Dorin, Craciun, 2009-01-20 07:29

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <8e04b5820901192329pf44431coce4423e6a8d43198@mail.gmail.com>
URL: https://gitlist.dev/e/8e04b5820901192329pf44431coce4423e6a8d43198%40mail.gmail.com
In-Reply-To: <20090120033402.GC8754@kroah.com>

```
On Tue, Jan 20, 2009 at 5:34 AM, Greg KH <greg@kroah.com> wrote:
> On Mon, Jan 19, 2009 at 09:52:16AM +0200, Ciprian Dorin, Craciun wrote:
>>     I use something even simpler, please see the attached .git/config
>> file that I use. It also uses remote branches, and rewrites the refs
>> to something like: stable/v2.6.25/master or torvalds/v2.6/master. Also
>> in order to fetch them I use git fetch stable/v2.6.25
>
> You all do know that all of the -stable trees are automatically kept in
> one repo on kernel.org, so you don't have to jump through all of these
> hoops, right?
>
> confused,
>
> greg k-h

    :) This is something that escaped me... Could you give me the
exact git url for this repository? (on kernel.org I'm not able to find
it, just the current one...)

    Thanks,
    Ciprian Craciun.

```

## Miklos Vajna, 2009-01-20 12:03

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <20090120120319.GR30710@genesis.frugalware.org>
URL: https://gitlist.dev/e/20090120120319.GR30710%40genesis.frugalware.org
In-Reply-To: <8e04b5820901192329pf44431coce4423e6a8d43198@mail.gmail.com>

```
On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote:
>     :) This is something that escaped me... Could you give me the
> exact git url for this repository? (on kernel.org I'm not able to find
> it, just the current one...)

git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git

Have you tried this one?

```

## Ciprian Dorin, Craciun, 2009-01-21 16:02

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <8e04b5820901210802y1102cfd0q4a3f8812f357c398@mail.gmail.com>
URL: https://gitlist.dev/e/8e04b5820901210802y1102cfd0q4a3f8812f357c398%40mail.gmail.com
In-Reply-To: <20090120120319.GR30710@genesis.frugalware.org>

```
On Tue, Jan 20, 2009 at 2:03 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote:
>>     :) This is something that escaped me... Could you give me the
>> exact git url for this repository? (on kernel.org I'm not able to find
>> it, just the current one...)
>
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git
>
> Have you tried this one?

    Ok... I'm ashamed... :) :) This is exactly what (we all) were
looking for... Sorry.

    Just one curiosity: is this older (I mean if it was created) than
when 2.6.18 or 19 was released? Because at that time I've searched for
such a repository, didn't found it and hacked the config as I've said
previously...

    Ciprian Craciun.

```

## Greg KH, 2009-01-21 16:11

Subject: Re: how to track multiple upstreams in one repository
Message-ID: <20090121161131.GA22615@kroah.com>
URL: https://gitlist.dev/e/20090121161131.GA22615%40kroah.com
In-Reply-To: <8e04b5820901210802y1102cfd0q4a3f8812f357c398@mail.gmail.com>

```
On Wed, Jan 21, 2009 at 06:02:51PM +0200, Ciprian Dorin, Craciun wrote:
> On Tue, Jan 20, 2009 at 2:03 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> > On Tue, Jan 20, 2009 at 09:29:13AM +0200, "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote:
> >>     :) This is something that escaped me... Could you give me the
> >> exact git url for this repository? (on kernel.org I'm not able to find
> >> it, just the current one...)
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6-stable.git
> >
> > Have you tried this one?
> 
>     Ok... I'm ashamed... :) :) This is exactly what (we all) were
> looking for... Sorry.
> 
>     Just one curiosity: is this older (I mean if it was created) than
> when 2.6.18 or 19 was released? Because at that time I've searched for
> such a repository, didn't found it and hacked the config as I've said
> previously...

Probably not, but I really don't remember when it was created, sorry.

thanks,

greg k-h

```
