officemonkey
officemonkey

Reputation: 323

How do you organize your git repositories?

"Traditional" version control systems follow a "Cathedral" model -- all the code is stored in one main repository.

Distributed Version Control Systems like git allow a lot more flexibility in organizing your multiple repositories. You can "push" changes, "pull" changes, and "clone" repositories.

Have you organized your repositories along your workgroup or workflow lines? Have you noticed any patterns?

Upvotes: 18

Views: 19568

Answers (2)

Abie
Abie

Reputation: 10825

Scott Chacon, whose git-fu is very strong, has some great slides on this in Getting Git. Check pages 474-501 for many excellent diagrams explaining three types of workflow:

  • central repository model (svn style),
  • dictator and lieutenants model (linux kernel style),
  • integration manager model (github style).

The full context for the referenced slides can be found here Pro Git - 5.1 Distributed Git - Distributed Workflows.

Upvotes: 31

TokenMacGuy
TokenMacGuy

Reputation: 1015

I'm still pretty new to git, but the way i've been handling this is making a total mess on my own repository, and when I get to a state that looks pretty healthy (at least a few unit tests pass), I tag it and push to a publicly accessible repository.

Upvotes: 0

Related Questions