Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 2.99 KB

File metadata and controls

104 lines (74 loc) · 2.99 KB

How to Submit to the Classroom Repository (GitHub Classroom)

You can submit your work to the GitHub Classroom repository in two ways:

  1. Using the Web Version (GitHub Web Interface)
  2. Using VS Code (Git + GitHub Integration)

1. Using the Web Version

If you prefer to upload your work directly via GitHub’s website, follow these steps:

Step 1: Open Your Classroom Repository

  • Go to GitHub Classroom and find the assignment repository link your instructor provided.
  • Click on the repository link. You should see a page that says something like:

    This repository was created for your assignment.

  • Your own repo should look like this:

Bookmark your repo

Step 2: Upload Your Work

  • Click the "Add file" button and choose "Upload files"
  • Drag and drop your project files or click "Choose your files" to select them.

Step 3: Commit the Changes

  • Scroll down and enter a meaningful commit message like:

    Added my solution for assignment X

  • Click "Commit changes" to submit.

2. Using GitHub Codespaces

If you are working in GitHub Codespaces, follow these steps:

Step 1: Open Codespace

  • Go to your repository on GitHub Classroom.
  • Click the "Code" button and select "Codespaces".
  • Click "Create codespace on main" (or your working branch).

alt text

Step 2: Add Your Work

  • Add or modify your code directly inside the Codespaces environment.

Step 3: Stage and Commit the Changes

  • Open the terminal inside Codespaces and run:

    git add .
    git commit -m "Completed assignment submission"

Step 4: Push to GitHub

  • Push your changes to GitHub with:

    git push origin main

3. Using VS Code (Git + GitHub Integration)

If you are working on your code in VS Code, follow these steps to submit it using Git commands.

Step 1: Clone the Repository

  • Open VS Code and open the Terminal (use Ctrl + ~ shortcut).

  • Run this command to clone the repository (replace with your actual repo link):

    git clone https://github.com/iSTAREducation/intro-computerscience-python-arnav-kalavagunta.git
  • Navigate into the project folder:

    cd YOUR-CLASSROOM-REPO

Step 2: Add Your Work

  • Copy your files into the cloned repository folder.

Step 3: Stage and Commit the Changes

  • Run the following commands in the terminal:

    git add .
    git commit -m "Completed assignment submission"

Step 4: Push to GitHub

  • Push your changes to GitHub with:

    git push origin main

💡 Note: If your branch is named master instead of main, use git push origin master instead.


Verifying Submission

After pushing your changes:

  • Go to your GitHub Classroom repository.
  • Check if your files are uploaded correctly under the "Code" tab.
  • If everything looks good, you're done! ✅