Cloud computing has changed the way software is designed, built, and deployed, impacting the tools we use and how we collaborate with one another. Learn more about the basics of Git and some of the most important concepts to be used in Azure Repos.
- [Instructor] Cloud computing has changed the way software is designed, built, tested, and deployed. This has impacted the tools we use and how we collaborate with one another to achieve our goals. Version control systems play a major role in this evolution. In this video, I'll walk you through some of the basics of Git. These concepts will help you get an idea of how Azure Repos can improve your efficiency as a team when developing software and collaborating with others.
By leveraging Git and Azure Repos, your code can live in the cloud to give everybody the ability to collaborate at the same time without worrying about data integrity. The first step for accomplishing this is to host your code in the cloud. In Azure Repos, there's multiple ways of doing so. You can either create a repo within the tool or import your repo from another source. For the time being, let's say that a Git repo already existed in Azure Repos.
A Git repo contains a set of branches and folders and files with complete history and version tracking capabilities. Git folders and files behave in the same way as folders and files you use in your computer. Branches are a bit more interesting. They allow you to develop features that can be isolated from each other. The master branch is a default branch when you create a repo, and other branches can be used for development of new features and then merged back upon completion.
This allows scenarios in which your master branch contains a production piece and your additional branches allow for development of new features in parallel. The question you may be asking is, how do you actually work on your code? Even though the code lives in the cloud in practice, most of the development happens locally. This gives the developer the freedom to use the tools of his preference and be more productive. To achieve this, users can run the clone command for Git.
Once a repo is cloned, that developer can decide what's the best tool to make use, to make changes, and whether or not he wants to create a new branch for it. The recommendation would always be to create a new one to keep the code clean and the quality high. As a developer works on the changes, everything gets saved locally with detailed history of the changes that are committed so they can be rolled back if any problem is encountered. Keeping the cloud in sync with your local changes is as simple as pushing changes into the cloud.
The final step is getting your code ready for production, and this is easy as well. Whether you make use of pull requests or not, merging into master is a step you want to be careful about to guarantee quality and happy customers. Along the way, Azure Repos facilitates this workflow and provides a functionality needed to make sure your team can leverage best practices. Teams can then choose to adopt this based on their own criteria and their own requirements.
- Tracking your team's work with Azure Boards
- Using dashboards, boards, backlogs, and sprints
- Building a code repository in Azure Repos
- Building pull requests
- Creating a code pipeline
- Extending Azure DevOps