8.4 Tracking Multiple Projects

Most organizations have multiple projects. Even if they are different parts of one product, they all need to be segregated so everyone on the team can find the code they need without having to sift through all the code.

You can handle multiple projects with Git in a couple of ways. You can store all your projects in one repository, or you can have individual repositories for each project. There are pros and cons to each, and we’ll cover them in the following sections.

Multiple Projects, One Repository

The first and most straightforward method is creating one repository and storing multiple projects within it. You can do this by creating a different top-level directory for each project within your repository. ...

Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.