Azure Repos on Git for Projects- Guidelines to create and clone
"A repo is a container/ version control tool which is used to store and manage historical changes on the code in a systematic way"
For more detailed comparison between Git and TFVC refer the below link:
Let's look how Azure Repos is being used on Projects in Azure DevOps.
2. Open Project -> Azure Repos -> File -> Copy the clone URL
To clone the repository to local machine, Git should be installed in the local machine. Below video provides the complete guidelines to download, install and configure Git in local system.
Let's look how repo is being cloned to local system. I'll be following command prompt method for the process.
2. In local machine -> Open a folder -> Enter "cmd" in folder path to Open command prompt from that folder
3. In cmd, enter "git clone <paste clone URL>" -> press enter
4. Git Credential Manager opens to authenticate to the Azure Project. Enter login credentials to signin.
5. Once signed in, empty repository will be cloned to local machine. Repo name will be similar to the Azure repo name in the project
Recommended by LinkedIn
Cloning repository via Visual Studio or any IDE is possible. Below video gives the guideline for cloning from IDE.
6. Add the files in the cloned repository. Open cmd from the cloned repository.
7. In cmd, enter command "git add --all" to copy the files from local repository to server repository. -> press enter
8. Now commit the files to server from local repo with a message using command "git commit -m "test repo import" -> press enter
9. Synchronize local files to server using command "git push" -> press enter
10. On Azure Repos, refresh the web page to view the files being pushed to server from local.
11. Commit details can be viewed in Repos -> Commits
12. Push details can be viewed in Repos -> Pushes
Hope this article has provided a brief insight on Azure Repos and its usage.
Thank You!