Connect your local repo to the remote:
git init
git add .
git commit -m 'initial commit'
git branch -M mastermain
git remote add origin <clone URL>
git push -u origin mastermain
- Run
git remote add origin <clone URL> means that you can use the clone URL from within Azure DevOps
- Run
git push -u origin [main or master]main] (or the name of your default branch) to push your local code to the newly created Azure DevOps repo.