I have 5-10 independent projects that I want place under version control using Git. What is the best way to organize the projects/respositories:
- Use one repository for each project
- use one repository for all my work and use subdirectories for each project
- Or something completely different
What has worked best for you and why?
To complete Marc's answer, going with one central repository (with all the projects inside) does not prevent multiple repositories, each with their own project.
Let's hear it from Linus himself:
I'd definitely say use one repository for each project. Otherwise you're going to have all sort of crosstalk between projects, not to mention it's a pain to specify long paths if you're using command line git. Git works great with the one repository per project model, I can't really see any reason to use anything else; I don't think I ever really understood why SVN promoted working that way.
If the repository is corrupted.It effects all project teams.So repo for each project is good idea.