Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Up Multiple GIT Repositories for Multiple Projects in VSTS

I'm new to vsts and git. So I may be missing something obvious or not understanding how vsts will work.

Our team will be using a centralized workflow. Is there a place in VSTS to set up a place to house all of the repositries?

If I have over 50 repos and some of them are used on many projects. For example a web service project that provides common data to a bunch of different apps (website, internal support apps, mobile etc.)

If a project is created in vsts and that webservice and the moible app needs to be changed, it seems like the only option is to import the git repo directly into that project. When the project ends where does the repo go? Is there a way to set up a central place to house all the repos in VSTS? If so what is the work flow for using that repo (and others) in my new project?

Update

I know that git is distributed, however we still have a need to a repo that represents the most up to date repo. In the git book this is called the 'central' or 'blessed' repository.

Since VSTS creates a separate repo for every project. I am wondering how to manage this work flow from VSTS or is this something that is going to be a manual process.

I assume this is a common set up. Enterprise sized company with 50 - 100 code repos. Many projects that can touch many of the repos. I want to manage as much as I can from VSTS.

like image 773
Allan Avatar asked May 10 '18 17:05

Allan


1 Answers

Software projects versus team projects

To build and deploy a software application, you begin by defining a software project. Software projects differ from team projects.

A team project defines a process and data storage in which you manage your software projects from planning to deployment. When you connect to VSTS or an on-premises TFS, you connect to an account or team project collection. Within that collection, one or more team projects may be defined. At a minimum, at least one team project must be created in order to use the system.

ref https://learn.microsoft.com/en-us/vsts/user-guide/concepts?view=vsts

One you have created your team project, you can have multiple git repositories in a team project.

To create a git repository:

enter image description here

After creating your multiple repositories, you can access them from

enter image description here

How many software projects you put into a specific repository is up to you. You could have a repository for API and another repository for APP. Or have only one to have the two.

like image 78
Rodrigo Werlang Avatar answered Oct 12 '22 03:10

Rodrigo Werlang