Connect your local repo to the remote:
git init
git add .
git commit -m 'initial commit'
git branch -M master
git remote add origin <clone URL>
git push -u origin master
- 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] (or the name of your default branch) to push your local code to the newly created Azure DevOps repo.