Up to this point, you’ve practiced in a single Git branch. (Note: GitHub has changed the naming convention of the main branch from master to main.We will be updating the instructions and code workspaces soon to reflect that. In the meantime, master refers to main).

Git allows us to create branches to experiment with versions of a project. Imagine you want to create a version of a story with a happy ending. You can create a new branch and make the happy ending changes to that branch only. It will have no effect on the master branch until you’re ready to merge the happy ending to the master branch.

In this lesson, we’ll be using Git branching to develop multiple versions of a resumé.

You can use the command below to answer the question: “which branch am I on?”

git branch



Check what branch you are currently on.

In the output, the * (asterisk) is showing you what branch you’re on. The project only has one branch at this time.

Click Next to learn how to make a new branch.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?