Saturday, March 26, 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

No comments:

Post a Comment

GPG Verify DupeGuru

https://dupeguru.voltaicideas.net/ https://github.com/arsenetar/dupeguru/releases/tag/4.3.1 $ gpg --verify dupeguru_macOS_Qt_4.3.1.zip.siggp...