Skip to main content

Posts

Showing posts from March, 2022

How to push a local Git repository to a new remote repository in Azure DevOps from Visual Studio Code?

* Make a new empty repository without add a README in Azure DevOps. * Copy the Url https://dev.azure.com/myADO/Project/_git/myGitSample from the Push an existing repository from the command line (Omit git remote add origin) * Go to VSCode to add a new remote with Url above and named it myAzureDevOps for example (similar as git remote add origin [https://...)]https://...) * After add remote successful, then push to remote (myAzureDevOps) (git push -u origin --all) * Check Azure DevOps using browser