all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Olson <mwolson@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Git repository and branches ?
Date: Thu, 21 Feb 2008 14:37:02 -0600	[thread overview]
Message-ID: <87odaaoxld.fsf@grepfind.mwolson.org> (raw)
In-Reply-To: 87wsoz9j1b.fsf@catnip.gol.com

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

Miles Bader <miles@gnu.org> writes:

> 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

If you want to track changes made to that branch in the remote repo, you
can alternatively do:

git branch --track lexbind origin/lexbind

-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2008-02-21 20:37 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 [this message]
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
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=87odaaoxld.fsf@grepfind.mwolson.org \
    --to=mwolson@gnu.org \
    --cc=emacs-devel@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.