PY-1.4-BP1-MQ30

Our Goal: Move to Your New Branch

In this lesson, you will learn how to move from your main project to the new branch you made. This is like moving to your special workspace where you can build new things without changing the main game. You will move to the 'feature/add-score-limit' branch and then check to make sure you are there.

Check Where You Are

Before you move, let's check which branch you are on right now. You should be on the 'main' branch.

Run this command in your terminal to see your current branch:

git branch

What you should see:

āŒ The 'main' branch should have a star (*) next to it. This means you are on the 'main' branch and ready to switch!

Move to Your New Branch

Now it's time to move to your new branch! This is how you tell Git you want to start working on that copy of your project.

You can use the git checkout command to switch branches. Here's an example of how to switch to a branch called 'my-new-idea':

git checkout my-new-idea

Or, you can use the git switch command, which does the same thing:

git switch my-new-idea

After you switch, you can check which branch you are on with git branch or git status.

Check Your Work Again

You've moved to your new branch! Now, let's check to make sure you are there.

Run this command in your terminal:

git branch

What you should see:

āœ… The 'feature/add-score-limit' branch should have a star (*) next to it. This means you are now on your new branch and ready to work!

Documentation

Documentation not available for PY-1.4-BP1.