Demystifying Azure DevOps Services by Ashish Raj

Demystifying Azure DevOps Services by Ashish Raj

Author:Ashish Raj [Raj, Ashish]
Language: eng
Format: epub
ISBN: 9789389898682
Publisher: BPB Publications
Published: 2021-08-15T00:00:00+00:00


Figure 5.3: Git process flow

Git repository can be created locally using git init command, then a remote server can be added using git remote command, and locally created repository can be pushed to a server using git push. A Git repository can also be created on a central server; they can be cloned using git clone command on the local computer for making file changes, and push back the changes using git push. The latter practice is more common, and we will be following the same in Azure Repos during our demonstration.

After cloning the repository from a server, a developer makes changes into files and then stages these files in staging area, using git add command. Once files with changes are staged, the Git commit command is used to commit these files to the local repository. When changes on the local repository are committed, then git push command is used to push these changes to the server repository. The git pull command is used to get the changes pushed by other developers on the server. Figure 5.3 demonstrates this process flow in brief.

Azure Repos also offers other features to make use of some of the best practices while working with the git repository. We will explore such features in the upcoming sections.

When you create a project in Azure DevOps, you will be prompted to select the version control for the default repository that gets created as part of project creation. As discussed, Azure Repos supports two types of the version control system, and it asks you to select one of them which are: Git or TFVC. We have already demonstrated this during Project creation in Chapter 3. We selected Git for our project BookApp. To view repositories in the project, you can click on Azure Repos, as shown in the following figure 5.4:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.