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.
There are two ways provided by Azure DevOps that you can push your existing project 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With