What Is a Branch?
In this lesson, you will learn what a branch is and how it is a central feature that allows git for making collaborative work convenient.
We'll cover the following...
Why are branches useful?
Let’s say you are working on a project with a team. You’ve been working on a significant feature that requires a lot of changes to the codebase, and, all of a sudden, one of your team members tells you that there is a major bug, and you need to prioritize it and fix it.
You will find yourself in a confusing situation. Not only will you need to switch context completely by focusing on the new issue at hand, but where will you store all the code you have been working on for the unfinished ...