From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Git: Branches and remote repositories

Git: Branches and remote repositories

- [Instructor] In this lesson, we'll talk about Git branches. While checking Git status and making commits, we can notice a line like this in the output, On branch master. So, what are these branches? Well, here's one example. Our project can have multiple versions. So, maybe we shipped out version 1.0 to our users, and a part of the team is constantly fixing bugs in version 1.0. So, they'll work on the 1.0 branch. But at the same time, we also intend to build new features into our software. So, another part of the team is working on version 1.1, on an entirely different branch. This way, people can work on two versions, two branches without interfering with each other. And Git will track each branch separately. We can think of branches as different development roads. They can go in similar, but slightly different directions. And from time to time, they can be reunited, which is called merging in Git terminology. And we'll see how that works later on. The master branch is the default…

Contents