50% off your 1st seat of GitKraken Pro — only $4/month!

Learn Git: How to Git Branch

Beginner Git Tutorial

In Git, a branch is a pointer to a specific commit. The branch pointer moves along with each new commit you make, and only diverges in the graph if a commit is made on a common ancestor commit. There are various commands you can take in Git to work with your branches.

Watch this beginner Git tutorial video to learn more about branching in Git, how to delete a Git branch, how to create a Git branch, and how to rename a Git branch. You will also see an example of how to use the Git checkout command to switch a Git branch in the GitKraken Git GUI.

Additional Resources

Table of Contents

Make Git Easier, Safer &
More Powerful

with GitKraken

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.