all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xavier Maillard <xma@gnu.org>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Git repository and branches ?
Date: Sat, 23 Feb 2008 03:00:06 +0100	[thread overview]
Message-ID: <200802230200.m1N206aV007398@localhost.localdomain> (raw)
In-Reply-To: <buove4hitj2.fsf@dhapc248.dev.necel.com> (message from Miles Bader on Fri, 22 Feb 2008 12:01:21 +0900)


   Xavier Maillard <xma@gnu.org> 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.]

Once again, thank you very much for your help. I tested it here
and it worked like a charm. The only drawback is that switching
from a branch to master and vice versa takes very long...

I can live with that though.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




  parent reply	other threads:[~2008-02-23  2:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21  2:00 Git repository and branches ? Xavier Maillard
2008-02-21  1:48 ` Miles Bader
2008-02-21 20:37   ` Michael Olson
2008-02-21 22:29     ` Miles Bader
2008-02-22  2:00   ` Xavier Maillard
2008-02-22  3:01     ` Miles Bader
2008-02-22  9:58       ` Andreas Schwab
2008-02-23  2:00         ` Xavier Maillard
2008-02-23  8:54           ` Andreas Schwab
2008-02-24  2:00             ` Xavier Maillard
2008-02-23  2:00       ` Xavier Maillard [this message]
2008-02-23  2:53         ` Miles Bader
2008-02-24  2:00           ` Xavier Maillard
2008-02-24  2:00           ` Xavier Maillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802230200.m1N206aV007398@localhost.localdomain \
    --to=xma@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.