Working on Assignments in PyCharm

One-Time Initial Setup

You'll only have to do the following steps once:

  1. Make sure you've signed-in to GitHub in your browser
  2. Visit Settings > Developer Settings > Personal access tokens
  3. Click "Generate New Token"
  4. You can name the token anything you like. You must check:
    • repo
    • workflow
    • gist
    • admin:org
  5. Click "Generate Token" and then copy the token and store it somewhere secure.

Initial Setup for Each Assignment

You'll want to follow these instructions when you start work on each assignment.

  1. Make sure you've visited the assignment page and clicked the "GitHub Classroom Assignment Invite Link" to accept the assignment.
  2. Open PyCharm and from the main menu, select "Git | Clone", or, if no project is currently opened, click Get from VCS on the Welcome screen.
  3. In the "Get from Version Control" dialog, specify the URL of the remote repository you want to clone
  4. In the "Login to GitHub" dialog that follows, click "Use Token" and paste in your personal access token.

Working On Assignments

  1. As you continue to work on the assignment, remember to stage and commit your work frequently.
  2. You can push your commits to your repo as often as you like
  3. Remember to commit and push everything before midnight on the date the assignment is due.
  4. If you're hazy on Git usage, review the VCS section of lecture 4.