Skip to main content

Command Palette

Search for a command to run...

Understanding GIT: A Guide to Version Control Systems

Updated
2 min read
Understanding GIT: A Guide to Version Control Systems

Here, we will discuss a very crucial starting point for any DevOps pipeline.

The source code management is done using tools like GitHub.

The team of developers commits the source code files to the GitHub repository.

What is Git?

It is a version control system that allows multiple developers to simultaneously work on source code without interfering with each other's work.

It offers features like branching and merging, which are helpful when a developer wants to develop or work on a new update or feature. He can create a dev branch from the master branch, and once everything works fine, it can be merged with the master branch, from where it is deployed for the end users.

Git also helps us keep track of the changes made to any code files, so if a developer wants to go back to a previous version, he/she can.

GIT can be used as a source code management with the CI/CD tools like Jenkins where the GiT webhooks can be configured to automatically trigger a pipeline when a code commit is done by developer.

Git also offers a pool of other tools, like Gitlab, Git action, Gitops which enables complete CI/CD pipelines using the GIT tools and the Git source code as a single source of truth.

GitOps, is a way in which the complete deployment process is controlled and managed using the GIT repo as a single source of truth. The infrastructure configurations, application codes everything is available in the Git repo. And changes to these git repo files trigger the complete deployment process.

Git Actions helps us to automate tasks in our Git workflow. Tasks like running tests, building your code, deploying on environments.

Git ops is a more broader approach which helps to manage both the infrastructure configurations and application code using Git as a single source of truth.

GitHub and GitLab are both platforms that allow us to store repositories, which are collections of code files. GitLab offers some additional features over GitHub.

GitLab has integrated CI/CD capabilities, whereas GitHub provides CI/CD with Git Actions.

GitLab has a built-in image registry to store your Docker images. It is also integrated with Kubernetes, allowing us to deploy applications on k8s clusters directly using GitLab.

More from this blog

SargoHub

10 posts