From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carl Worth Subject: Re: GIT vs Other: Need argument Date: Mon, 23 Apr 2007 15:12:05 -0700 Message-ID: <87zm4y7nbe.wl%cworth@cworth.org> References: <877is29b1l.wl%cworth@cworth.org> <200704232152.58833.Josef.Weidendorfer@gmx.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Apr_23_15:12:05_2007-1"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Cc: Linus Torvalds , Marcin Kasperski , git@vger.kernel.org, Junio C Hamano To: Josef Weidendorfer X-From: git-owner@vger.kernel.org Tue Apr 24 00:12:21 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 1Hg6lc-00019J-LT for gcvg-git@gmane.org; Tue, 24 Apr 2007 00:12:17 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754345AbXDWWMK (ORCPT ); Mon, 23 Apr 2007 18:12:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754340AbXDWWMJ (ORCPT ); Mon, 23 Apr 2007 18:12:09 -0400 Received: from theworths.org ([217.160.253.102]:58360 "EHLO theworths.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbXDWWMI (ORCPT ); Mon, 23 Apr 2007 18:12:08 -0400 Received: (qmail 16986 invoked from network); 23 Apr 2007 18:12:06 -0400 Received: from localhost (HELO raht.cworth.org) (127.0.0.1) by localhost with SMTP; 23 Apr 2007 18:12:06 -0400 In-Reply-To: <200704232152.58833.Josef.Weidendorfer@gmx.de> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.4 Mule/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: --pgp-sign-Multipart_Mon_Apr_23_15:12:05_2007-1 Content-Type: text/plain; charset=US-ASCII On Mon, 23 Apr 2007 21:52:58 +0200,Josef Weidendorfer wrote: > The commands above are not needed for pure tracking, but instead prepare > a local development branch for you to work on, and where you can pull > upstream changes with "git pull". > For tracking a remote $branch, it should be enough to do > > git clone > git fetch > > and you get the any (*) remote $branch as "remotes/origin/$branch". By "tracking" I mean the ability to get the working-tree state to match that of some remote-tracking branch and then be able to periodically do some command, ("git pull"), to make the working-tree reflect the latest state of that remote branch. So the fact that at any given point I can say: git checkout origin/ and get into a detached-HEAD where the working-tree matches what I last fetched, doesn't quite do the job. From there, there's nothing like "git pull" to usefully bring the working-tree state up to the latest. Issuing "git pull" from the detached HEAD state does fetch, but then complains: You are not currently on a branch; you must explicitly specify which branch you wish to merge: git pull So, no, the current git-clone alone does not get me to where I'd like to be. -Carl --pgp-sign-Multipart_Mon_Apr_23_15:12:05_2007-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGLS816JDdNq8qSWgRAo40AJ9MCX/AhQlQxRyZ+RhoVHIrLYYZUACcD8y8 nPIvyE3pJh/NjqIRoMcINGc= =dSss -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Apr_23_15:12:05_2007-1--