From: Pete Harlan <pgit@pcharlan.com>
To: Tim Visher <tim.visher@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Hello All and Seeking Information
Date: Mon, 24 Nov 2008 23:57:21 -0800 [thread overview]
Message-ID: <492BAFE1.5010904@pcharlan.com> (raw)
In-Reply-To: <c115fd3c0811240828y61e7bfecka1cacdd37865a4e8@mail.gmail.com>
Tim Visher wrote:
> there are some issues that I can't wrap my head around, such as how
> you can guarantee that all developers are working on the same
> code-base without a central repo.
You can have a central repo that represents the official lines of
development (branches, but "official" branches), and each developer
has local copies of those branches so they can compare their own work
against them.
If you don't have a central repo, then the developers can keep local
copies of other developers' branches when they're interested in them,
and compare their work against those.
Using the git project as an example, when you clone from
git://git.kernel.org/pub/scm/git/git.git you will find "remote
branches" origin/master, origin/maint, etc. They're stored locally in
your repo; the name "remote" only refers to the fact that at one time
(when you last cloned or fetched) they corresponded to branches in the
origin repo. You can list your copies of these branches with "git
branch -r". You can freshen them to agree with the origin with "git
fetch origin".
Your local branches ("local" referring to the fact that they exist
_only_ locally), listed by "git branch", are what you develop on.
After you do "git fetch", you can compare your local branches against
your copies of the remote branches to see if the remote repo has new
work you haven't yet incorporated into your local branches. You can
also compare against them to see if you have work they don't.
So each developer can compare what they have against what others have,
and keep things in sync as much as they wish to (and no more), fairly
easily.
--Pete
prev parent reply other threads:[~2008-11-25 7:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 16:28 Hello All and Seeking Information Tim Visher
2008-11-24 16:35 ` Bruce Stephens
2008-11-24 16:39 ` Christian MICHON
2008-11-24 18:22 ` Jakub Narebski
2008-11-25 7:57 ` Pete Harlan [this message]
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=492BAFE1.5010904@pcharlan.com \
--to=pgit@pcharlan.com \
--cc=git@vger.kernel.org \
--cc=tim.visher@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).