"Cloning a local Git repo into Cloud-based Azure DevOps",
What you actually mean is pushing local files into the remote repository.
Based on our conversation in the comments,
Follow those few steps to push the code to the remote repository:
Create a Azure Devops Repository (If Repository already exists, skip this)
On your local repository (in your IDE terminal) git init to initialize a git repo.
2.1 If a local git repo already initialized on your filesystem (.git directory exists) use git remote -v to verify the remote. output :
azure https://dev.azure.com/organization/project/_git/repository (fetch)
azure https://dev.azure.com/organization/project/_git/repository (push)
- add all files to the staging area
git add .
- Record the changes made to the files in the staging area
git commit -m "<some commit message>"
- upload local repository commits to a remote repository
git push -u origin <branch_name>