Day 9: Deep Dive in Git & GitHub for DevOps Engineers

Hi, I am an AWS-certified cloud engineer and I write about my progress and learnings of DevOps.
Git and its importance
In the world of software developers when programmers build an application, it consists of millions of lines of code. It is virtually impossible to track changes and progress. This problem becomes more complex when people are working in teams on a single project.
To track changes we use a version control system. Git is a version control system that tracks what changes are made and by whom.
Git works on your local computer, you can execute various commands and it is an open-source platform.
GitHub
It is a cloud platform that is used to host your repositories. It integrates with git and you can use git commands to modify repositories.
Local and Remote repository
A repository is a place where files and folders are stored. It can be a Git repository.
A local repository- where files and folders are stored in your local computers.
Remote repository- where repositories are kept on a server or hosted on a cloud platform.
What is the difference Between Main Branch and Master Branch ?
When a repository is initialized in Git, a branch will be created by default. This default branch is called the “Master”. While GitHub has a default branch when we create any repository which is called “Main”.





