CS 134

Submit Your Assignment

Finally, you need to submit your assignment. In other classes you may have used GradeScope to submit your assignment, but here we'll use something much simpler; creating a submission branch in your repository.

Submission Methods

We provide a custom submit-this command that simplifies the submission process. This method ensures your submission is up-to-date with your latest work and lets you easily resubmit if needed.

To use submit-this:

  1. In VS code, open your terminal (and navigate to your project directory if needed).
  2. Ensure all your changes are committed to the main branch.
  3. Run the following command:

    submit-this
    
  4. The command will create or update a submission branch with your latest work and push it to GitHub.

If you encounter any errors, carefully read the error message for instructions on how to resolve the issue. If you make a change and need to resubmit, simply run submit-this again.

Method 2: Creating a Submission Branch Manually

If you prefer, you can create the submission branch directly through the GitHub web interface:

  1. Go to your repository on GitHub.
  2. Click on the branch dropdown (usually says "main").
  3. Type submission into the text box.
    • Note that it's really important that you type submission exactly as shown here. That's why we recommend using the submit-this command.
  4. Select "Create branch: submission from 'main'".

Note: If the submission branch already exists, you'll need to update it to match the main branch instead.

Important Guidelines

  1. Do Not Work on the Submission Branch: The submission branch should only be used for submitting your assignments. Do not make direct changes to this branch. (Always do your work on the main branch. The submission branch is only for submitting your completed work.)
  2. Keep Your Work Up-to-Date: Regularly commit and push your changes to the main branch. This ensures your local repository is in sync with GitHub.
  3. Submit Final Work Only: Only submit your work when it's complete and ready for grading. If you need to make changes after submitting, make them on the main branch and resubmit.
  4. Verify Your Submission: After submitting, check your GitHub repository to ensure the submission branch exists and contains your latest work.
  5. Ask for Help: If you encounter any issues with the submission process, don't hesitate to ask for assistance.

Troubleshooting

If you encounter issues with the submit-this command:

  1. Ensure you're in the correct directory for your project.
  2. Check that all changes are committed to the main branch.
  3. Verify your internet connection.
  4. If errors persist, take a screenshot of the error message and seek help from the course staff.

To Complete This Part of the Assignment…

Follow the instructions above to submit your assignment. You'll know you're done when you've done all of the following:

(When logged in, completion status appears here.)