PY-1.4-BP6-MQ20

Our Goal: Make a Branch for Your Website

In this lesson, you will make a new special branch for your game. This branch will be called deployment-prep. You will use this branch to get your game ready to be put on the internet. It's like making a special workspace just for building your game's website.

Check Where You Are

Before you make your new branch, let's check which branch you are on. You should be on the 'main' branch.

Run this command in your terminal to see your branches:

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 make your new branch.

Make and Go to Your New Branch

Now, you will make your new branch and then go to it. This is how you start working in your special workspace for the website.

  1. Make the branch: Type this command to make a new branch called deployment-prep:

    git branch deployment-prep
    
  2. Go to the branch: Now, switch to your new branch:

    git checkout deployment-prep
    

Now you are ready to work on your website files in this new branch!

Check Your Work Again

You've made and switched 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 'deployment-prep' 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-BP6.