PY-1.4-BP2-MQ10

Our Goal: Connect Your Game to the Internet

In this lesson, you will learn how to connect your game project on your computer to a special place on the internet called GitHub. This is like making a copy of your game online so you can share it with others or save it safely. You will use a special command to add a link called 'origin' to your GitHub page.

Check What You Have

Before you connect your game to GitHub, let's check if it's already connected. It should not be connected yet.

Run this command in your terminal:

git remote -v

What you should see:

āŒ You should not see 'origin' listed. This means your game is not yet connected to GitHub, and you are ready to connect it!

Connect Your Game

Now it's time to connect your game to GitHub! You will use a special command to do this.

First, you need to find the web address (URL) of your GitHub project. It will look something like https://github.com/your-name/your-game.git.

Then, use this command in your terminal to connect your game. Replace your-github-url with the actual web address of your GitHub project:

git remote add origin your-github-url

This command tells Git that 'origin' is the name for your GitHub project, and it knows where to find it using the URL you gave it.

Check Your Work Again

You've connected your game! Now, let's check to make sure the connection is there.

Run this command in your terminal:

git remote -v

What you should see:

āœ… You should see 'origin' listed with a web address next to it. This means your game is now connected to GitHub!

Documentation

Documentation not available for PY-1.4-BP2.