PY-1.4-BP6-MQ60

Our Goal: Save and Send Your Website Work

In this lesson, you will save all the changes you made to get your game ready for the web. This includes your comments, your README.md file, and any special web files. Then, you will send all this work to your GitHub project on the deployment-prep branch. This is like packing a box with all your new work and sending it to GitHub.

Check Your Files

Before you save and send your work, let's check what Git knows about your files. You should have changed some files (like your code, README.md, and web files).

Run this command in your terminal:

git status

What you should see:

āœ… You should see a list of files that you have changed. This means Git knows you've made changes and you're ready to save them.

Save and Send Your Work

Now, you will save all your changes and send them to GitHub.

  1. Stage your files: Tell Git which files you want to save. You can add all changed files with this command:

    git add .
    
  2. Save your changes: Make a new 'save' (commit) for your work. Give it a good message, like 'Prepare game for web deployment':

    git commit -m "Prepare game for web deployment"
    
  3. Send to GitHub: Now, send your saved changes to your deployment-prep branch on GitHub. If this is the first time you are sending this branch, use this command:

    git push --set-upstream origin deployment-prep
    

    If you have pushed this branch before, you can just use:

    git push
    

After you do this, your work will be on GitHub!

Check Your Work Again

You've saved and sent your work! Now, let's check to make sure it's on GitHub.

  1. Run this command in your terminal:

    git status
    

    What you should see:

    āœ… It should say 'nothing to commit, working tree clean'. This means all your changes are saved.

  2. Go to your GitHub project page in your web browser. Look for your deployment-prep branch. It should be there and have your latest changes.

If you see these things, you did a great job!

Documentation

Documentation not available for PY-1.4-BP6.