Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 991
officemonkey Avatar asked Jan 29 '09 00:01

officemonkey


People also ask

Can I arrange repositories into folders on GitHub?

On GitHub itself, you cannot group your repos by "folder", unless you create organizations. See SublimeText, for instance, as a group of all sublimeText packages repos.

How do I manage a Git repository?

Create and Manage a Git RepositoryClick on the Settings page for your account, then on the SSH and GPG Keys section. On that page, click the “New SSH key” button. After you have clicked on the New SSH key button a panel will appear in which you should then input a Title for the key and the private key itself.


1 Answers

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.

like image 158
Abie Avatar answered Oct 25 '22 09:10

Abie