Re: how to track multiple upstreams in one repository
- From
- Bryan Donlan <bdonlan@fushizen.net>
- Date
- Jan 19, 2009, 02:14 UTC
- Message-ID
- <20090119021426.GA21999@shion.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:
Show 6 quoted lines
> 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.