Skip to content

Git and GitHub During the Assignment

mike-snhu edited this page Aug 25, 2026 · 2 revisions

Git and GitHub During the Assignment

Git and GitHub help you save, back up, and recover your Module Four work.

They are not the assignment submission or grading system.

GitHub = development and backup

D2L Brightspace = submission, grading, and instructor feedback

Work in Your Personal Repository

After setup, your local folder should be:

~/Repos/it140-m4-assignment

Your GitHub remote should point to the private repository in your own GitHub account, not directly to the public GC-STEM template.

Check with:

git remote -v

Save Often

Save files normally in VS Code while working.

Periodically commit and push so GitHub contains a recent backup.

You can use VS Code Source Control or the command line.

From the repository root:

git status
git add hilow_game_sdw.md design/hilow_game.pseudo src/hilow_game.py
git commit -m "Save Module Four assignment progress"
git push

Only changed files are included in a commit.

Review Before You Commit

Run:

git status

Expected student-editable files are:

  • design/hilow_game.pseudo
  • hilow_game_sdw.md if you use it
  • src/hilow_game.py if you complete optional practice

If a README, SRS, SDD, Draw.io file, test, or .github file appears unexpectedly, determine why before committing it.

Assignment Checks Run After a Push

Your personal repository runs Assignment Checks when you push.

While you are still working, a red X may simply mean the graded pseudocode still contains starter TODO prompts or has not changed from the starter state.

A green check confirms basic repository and file-state conditions. It does not grade the pseudocode.

Existing Repository on Another Computer

If your personal repository already exists on GitHub but is not on the current computer, clone the existing repository instead of creating a new one:

cd ~/Repos
gh repo clone "$(gh api user --jq .login)/it140-m4-assignment"
cd it140-m4-assignment
git status

Repository Already Exists

If a setup command says the repository or local folder already exists, do not repeatedly rerun the creation command.

Check whether the existing repository contains work you need to keep.

The root README includes restore and restart procedures for different situations.

Protect Good Work Before Recovery

Before deleting, renaming, resetting, or recreating anything:

  • save open files;
  • commit and push good work when possible; or
  • make a backup copy of the local folder.

Prefer recovery that preserves work over starting over.

GitHub Is Not D2L Submission

Pushing hilow_game.pseudo to GitHub does not submit the assignment.

After your design is complete, return to D2L Brightspace and upload the required .pseudo file according to the current Module Four assignment instructions.

Return to Home or continue to Assignment Problems and Support.

Clone this wiki locally