Information Technology Reference
In-Depth Information
10-2. Coworking with a central reposit-
ory
Problem
You want to simulate the cooperation of two developers John and Sarah using a central
repository. In this case the collaboration will be organized with three repositories:
10-02/johns-repo —a non-bare repository of the first developer
10-02/sarahs-repo —a non-bare repository of the second developer
10-02/shared-repo —a bare repository used to synchronize the
work of John and Sara
In this recipe both developers will work using only the master branch . You want
to analyze what happens when:
• Each developer proceeds with his or her work in the master branch
• One developer sends his or her revisions to a shared repo
• The other developer fetches new revisions
Hint This recipe shows how to organize a team's work around a central repository.
This workflow is similar to the client/server approach used by centralized systems, such
as CVS or SVN.
Solution
Create a new directory with:
$ cd git-recipes
$ mkdir 10-02
$ cd 10-02
Search WWH ::




Custom Search