From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: Pulling peer's branch and getting tracking branch created Date: Mon, 26 Feb 2007 16:59:27 -0800 Message-ID: <7v7iu4l8k0.fsf@assigned-by-dhcp.cox.net> References: <17891.32095.655545.637691@lisa.zopyra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Bill Lear X-From: git-owner@vger.kernel.org Tue Feb 27 01:59:47 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HLqgy-0003kH-E8 for gcvg-git@gmane.org; Tue, 27 Feb 2007 01:59:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030569AbXB0A73 (ORCPT ); Mon, 26 Feb 2007 19:59:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030555AbXB0A73 (ORCPT ); Mon, 26 Feb 2007 19:59:29 -0500 Received: from fed1rmmtao101.cox.net ([68.230.241.45]:37104 "EHLO fed1rmmtao101.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030569AbXB0A72 (ORCPT ); Mon, 26 Feb 2007 19:59:28 -0500 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao101.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070227005927.MORJ6078.fed1rmmtao101.cox.net@fed1rmimpo02.cox.net>; Mon, 26 Feb 2007 19:59:27 -0500 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo02.cox.net with bizsmtp id UQzT1W00S1kojtg0000000; Mon, 26 Feb 2007 19:59:27 -0500 In-Reply-To: <17891.32095.655545.637691@lisa.zopyra.com> (Bill Lear's message of "Mon, 26 Feb 2007 18:37:51 -0600") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Bill Lear writes: > I can't seem to figure out the correct magic to get my buddy's branch, > and create the appropriate tracking branch at the same time without > doing a clone. I'll cheat and ask "git show b6f5da1e" ;-). $ git remote add -f -m master bob ../bob.git/ which should add: [remote "bob"] url = ../bob.git/ fetch = +refs/heads/*:refs/remotes/bob/* to .git/config, and perform the initial "git fetch bob" so that bob's heads appear under your .git/refs/remotes/bob/*, iow, after this, you can ask: $ git branch -r bob/HEAD bob/master bob/topic-1 bob/topic-2 ...