From: Bryan Donlan Date: Mon, 19 Jan 2009 02:14:26 GMT Subject: Re: how to track multiple upstreams in one repository Message-ID: <20090119021426.GA21999@shion.is.fushizen.net> In-Reply-To: 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.