Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload Project to Azure Devops

Tags:

azure-devops

I am trying to push my existing visual studio project code to Azure Devops server (first time). All the tutorials start with create a new project on the AzureDevops and then clone to Visual Studio. Can anyone tell me how to push my existing project to server. Can I upload the files (including folders)? Thanks.

like image 492
user788448 Avatar asked Dec 12 '19 18:12

user788448


1 Answers

There are two ways provided by Azure DevOps that you can push your existing project to it.

  1. Push the project from local VS and create a project in Azure Devops automatically at the same time;
  2. Create a project in Azure Devops manually which I think you have already tried and then push your project in local VS to it.

Please follow this article for detailed information and also you can check below steps:

For the first situation, assume you have the project created already in your local VS:

a. Open your project in VS, click File in VS tool bar, click “Add to Source Control” in the menu and you will see in the little blue lockers beside your project files in Solution Explorer.

Add to Source Control

b. Open Team Explorer( you can find it in View in VS tool bar in case), click the small down arrow to open the menu, select “Sync”.

Sync

c. Now you can see the Synchronization menu, choose “Push to Azure DevOps” and click “Publish Git Repo”.

Push to Azure DevOps

d. Fill the form like below and then click “Publish Repository”. Now you can see a new project with the name in your Azure DevOps organization now.

Publish Repository

For the second situation, there’s difference in the step c, you have to choose the “Push to Remote Repository” and click “Publish Git Repo”, paste the HTTP code you can copy from your new created project in Azure DevOps – Repos. You can see it more clear in the article I provided.

Can I upload the files (including folders)?

Yes, any file and folder in your project will be pushed to Azure DevOps at the same time.

like image 186
mbb5079 Avatar answered Nov 03 '22 11:11

mbb5079