From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Git repository and branches ? Date: Thu, 21 Feb 2008 10:48:16 +0900 Message-ID: <87wsoz9j1b.fsf@catnip.gol.com> References: <200802210200.m1L20CP8004750@localhost.localdomain> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203558526 7447 80.91.229.12 (21 Feb 2008 01:48:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2008 01:48:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 21 02:49:10 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JS0Yb-0002jT-QO for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 02:49:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS0Y6-0005xt-RU for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2008 20:48:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JS0Y2-0005xb-UO for emacs-devel@gnu.org; Wed, 20 Feb 2008 20:48:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JS0Y0-0005xH-GT for emacs-devel@gnu.org; Wed, 20 Feb 2008 20:48:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JS0Y0-0005xE-Az for emacs-devel@gnu.org; Wed, 20 Feb 2008 20:48:28 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JS0Xr-0004LR-Nx; Wed, 20 Feb 2008 20:48:20 -0500 Original-Received: from 203-216-97-013.dsl.gol.ne.jp ([203.216.97.13] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JS0Xp-00013F-HX; Thu, 21 Feb 2008 10:48:17 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 509232FF7; Thu, 21 Feb 2008 10:48:16 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <200802210200.m1L20CP8004750@localhost.localdomain> (Xavier Maillard's message of "Thu, 21 Feb 2008 03:00:12 +0100") Original-Lines: 31 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89767 Archived-At: Xavier Maillard writes: > How can I get a specific branch of the current CVS using the git > repository ? Cloning the git repository has only fetched the > master branch. Cloning with git fetches _all_ branches that exist in the cloned git repo. They are under the "origin/" namespace. You can see them with: git branch -a To switch your working directory to one of those branches, you can use the git-checkout command. It's possibly to simply checkout one of the origin branches (e.g., "git checkout origin/lexbind"), but generally you don't want to do unless you're not going to do any modifications (the reason is that "origin/" branches are supposed to represent the pristine contents of the repo you cloned from, to make future interaction easier). So the more usual method is to create a local branch which tracks the given origin branch, e.g.: git checkout -b lexbind origin/lexbind [After that, you can switch to your local lexbind branch by just using "git checkout lexbind"; to switch back to the trunk, use "git checkout master".] -Miles -- Quack, n. A murderer without a license.