[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Git repository and branches ?
From: |
Michael Olson |
Subject: |
Re: Git repository and branches ? |
Date: |
Thu, 21 Feb 2008 14:37:02 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Miles Bader <address@hidden> 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 |
`-------------------------------------------------------'
pgpQfgsHZ9QHO.pgp
Description: PGP signature
- Git repository and branches ?, Xavier Maillard, 2008/02/20
- Re: Git repository and branches ?, Miles Bader, 2008/02/20
- Re: Git repository and branches ?,
Michael Olson <=
- Re: Git repository and branches ?, Xavier Maillard, 2008/02/21
- Re: Git repository and branches ?, Miles Bader, 2008/02/21
- Re: Git repository and branches ?, Andreas Schwab, 2008/02/22
- Re: Git repository and branches ?, Xavier Maillard, 2008/02/22
- Re: Git repository and branches ?, Andreas Schwab, 2008/02/23
- Re: Git repository and branches ?, Xavier Maillard, 2008/02/23
- Re: Git repository and branches ?, Xavier Maillard, 2008/02/22
- Re: Git repository and branches ?, Miles Bader, 2008/02/22
- Re: Git repository and branches ?, Xavier Maillard, 2008/02/23