EECS 230: How to Submit Homework

Homework submission will be via GitHub. To submit Homework N, you must commit the code you want graded to a branch called `develop` and push the commit to your assigned repository on GitHub.

Submission process using PyCharm

To submit via PyCharm, please read and follow these instructions carefully.

(Note that some screenshots here need to be updated; please bear with me.)

Step 1: Commit

First, be sure to commit your code VCS > Commit Changes.... You should be doing this frequently already, but for submission it’s especially important because you will submit your most recent commit to grade. Be sure to type a commit message that describes the changes you’re committing.

Step 2: Push

So far, committing only makes changes locally—on your own computer—rather than sharing them with the course staff. The next step is to push VCS > Git > Push... in order to upload your code to GitHub. Note that the time of upload (pushing) is considered the time of submission. Click Push:

Warning: The screenshot below shows pushing the local master branch to the master branch on origin. Yours should show the develop branch instead.

Again a confirmation should appear at the bottom of the screen.

Step 3: Check

Because the process is likely new to you and every step is important, we strongly suggest you check on GitHub to make sure that the code that you expect is now on GitHub. First, navigate to the GitHub page for your assigned repository:

By default, GitHub shows the master branch, which should not contain your changes. Use the drop-down that says “Branch: master ▾” to select the develop branch instead. Then browse your code below and make sure it looks as you expect. A good clue is if the commit message shown matches the commit message you used at the beginning of this process.

Step 4: Create a GitHub pull request

The last step to submitting your homework is to create a pull request on GitHub, which provides a context for someone else (me) to review your code. Click the “New pull request” button (to the right of the “Branch” drop-down). On the page that appears, confirm that you are requesting to merge into base master from develop:

Then click the “Create Pull Request” button.

Resubmission

You should submit early and often. If you submit and then want to change something, you can resubmit by repeating steps 1–3 above. (You should not create a new pull request.)