I have existing code on local PC in Visual Studio that I want to Import to the Azure Repos project. I have already created the Project in Azure DevOps. I have used Team Expl
Follow below step
Step 1 - Login Azure Devops using microsoft account.
Step 2 - In home page click create project,Provide the project name visibility status.
Step 3 - Now Your project was created then it's redirect to dashboard then select repos from the left menu.
Step 4 - Copy the URL.
Step 5 - Now go to visual studio team explore from local git repositories click Add option.
Step 6 - Create new repo from drive then local path and paste the URL path in second option then click clone.
Step 7 - Enter your Azure DevOps credentials for login.
Step 8 - It will publish your code on the master branch.
Step 9 - On successfully publish the changes your code will be displayed in the Azure Repos file section.