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 git repository.
Submission Methods
Method 1: Using the submit-this Command (Recommended)
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,
- In VS Code, open your terminal (and navigate to your project directory if needed).
- Make sure that all your changes have been committed to the
mainbranch. -
Run the following command:
submit-this -
The command will create or update a
submissionbranch 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 to your work 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:
- Go to your repository on GitHub in a browser.
- Click on the branch drop-down (has the git logo and usually says “main”).
- Type
submissioninto the “Switch branches/tags” text box (which probably says “Find or create a branch...”).- Note that it's really important that you type
submissionexactly as shown here. (That's why we recommend using thesubmit-thiscommand.)
- Note that it's really important that you type
- Click on “Create branch submission from main”.
Note: If the submission branch already exists, you'll need to update it to match the main branch instead. Or use submit-this.
Important Guidelines
- Do Not Work on the Submission Branch: The
submissionbranch should only be used for submitting your assignments. Do not make direct changes to this branch. (Always do your work on themainbranch. Thesubmissionbranch is only for submitting your completed work.) - Keep Your Work Up-to-Date: Regularly commit and push your changes to the
mainbranch. This practice ensures that your local repository is in sync with GitHub. - 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
mainbranch and resubmit. - Verify Your Submission: After submitting, check your GitHub repository to ensure that the
submissionbranch exists and contains your latest work. - 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:
- Ensure you're in the correct directory for your project.
- Check that all changes are committed to the
mainbranch. - Verify your internet connection.
- If errors persist, take a screenshot of the error message and seek help from the course staff.
(When logged in, completion status appears here.)