In essence, a Git branch is a movable pointer to a specific commit in the repository’s history. When you create a new branch, you’re creating a new line of development that diverges from the main line. This allows you to make changes without directly affecting the stable codebase.
Let’s understand how this works. I assume you have Git installed and have basic working knowledge of Git.
Read more on code site