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: Fri, 22 Feb 2008 12:01:21 +0900 Message-ID: References: <200802210200.m1L20CP8004750@localhost.localdomain> <87wsoz9j1b.fsf@catnip.gol.com> <200802220200.m1M207el003444@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 1203649307 11849 80.91.229.12 (22 Feb 2008 03:01:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 03:01:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 04:02:12 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 1JSOAt-0000eI-RS for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 04:02:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSOAO-0002Y6-Rh for ged-emacs-devel@m.gmane.org; Thu, 21 Feb 2008 22:01:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSOAI-0002Uq-NR for emacs-devel@gnu.org; Thu, 21 Feb 2008 22:01:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSOAH-0002TM-43 for emacs-devel@gnu.org; Thu, 21 Feb 2008 22:01:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSOAG-0002TB-PH for emacs-devel@gnu.org; Thu, 21 Feb 2008 22:01:32 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSOA9-0007U8-Gv; Thu, 21 Feb 2008 22:01:26 -0500 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m1M31MiE018028; Fri, 22 Feb 2008 12:01:22 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay21.aps.necel.com with ESMTP; Fri, 22 Feb 2008 12:01:22 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Fri, 22 Feb 2008 12:01:22 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 21BB443A; Fri, 22 Feb 2008 12:01:22 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200802220200.m1M207el003444@localhost.localdomain> (Xavier Maillard's message of "Fri, 22 Feb 2008 03:00:07 +0100") Original-Lines: 28 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:89910 Archived-At: Xavier Maillard writes: > 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".] > > Will my local git repository be able to "track" the activity of > the branch I am working. In short, will git-pull also fetch > branches? That command should set up a "tracking branch" by default (I just checked, and indeed --track is now the default; it didn't use to be, though, so be aware if you have an old version of git), which means that "git pull" will fetch and merge the current branch. [I'm a bit fuzzy on what exactly gets _fetched_ by default -- whether all branches from the origin remote, or only the origin branch corresponding to the current branch -- but I know only the current branch will be _merged_ when you do "git pull" or "git merge". So after using "git checkout BRANCH" to switch to a new branch, it's a good idea to use "git pull" again to make sure it's up to date.] -Miles -- Marriage, n. The state or condition of a community consisting of a master, a mistress and two slaves, making in all, two.