Git Tutorial

Initial Setup


Step 1: Create a Github Account*

inline

*one-time step

 

Step 2: Download Github Desktop software*

inline

*one-time step

 

Step 3: Sign in to Github Account through the Github Desktop application

inline

  • Github Desktop -> Preferences -> Accounts

*one-time step / Use your Github account username & password

 

Step 4: Create a folder named github in your “class” folder*

inline

*one-time step

 

Starting an Assignment


Step 5a: Fork Instructor Repository

  • The link for the Instructor repository will be provided to you

inline

 

Step 5b: Fork Instructor Repository

  • Github will create a copy of the repo under your account

inline

 

Step 6: Confirm Repository was Successfully Forked

inline

 

Step 7a: Clone Repository in Github

inline

 

Step 7b: Click “Launch Application” button

  • This opens your Github Desktop application

inline

 

Step 7c: Select your “github” folder and click “clone”

  • This is where the project folder will live

inline

 

Step 8: Confirm Repo was created in Github Desktop

inline

 

Step 9: Confirm project folder was created in “github” folder

inline

 

Step 10a: Open project folder with sublime and add code (as you normally would)

 

Step 10b: View changes in Github Desktop

inline

 

Step 11: Commit Your Changes

inline

 

Step 12: Push your changes to Github.com

inline

 

Repeat Steps 10 through 12 - as many times as needed

 

Submitting Your Assignment


Step 13a: Create a Pull Request in Github Desktop

inline

 

Step 13b: Create a Pull Request in Github Desktop

  • Important: Pull request should be named: HW Submission from [Your Name]

inline

 

Step 13c: Create a Pull Request in Github Desktop

inline

 

Step 14a: Confirm Creation of Pull Request on Github

inline

 

Step 14b: Confirm Creation of Pull Request on Github

inline

 

Step 14c: Confirm Creation of Pull Request on Github

inline

 

Receive Feedback from Instructors


Step 15a: Instructors will leave feedback and let you know what needs to be fixed

  • Hammer emojis indicate something that needs to be fixed

inline

 

Step 15b: Students can add comments of their own to get clarification

inline

 

Step 16: Student Fixes Any Outstanding Issues (Hammer emojis)

Repeat Steps 10 through 12

  1. Make your changes in sublime

  2. Commit your changes

  3. Push your changes

Do Not create a new Pull Request Your existing Pull Request will automatically be updated

 

Step 17: Instructor Reviews Changes

  • Instruction team will receive an email notification letting them know your Pull Request was updated
  • Instruction team will confirm that “hammers” were addressed

 

Step 18: Instructor Approves Your Assignment

  • Student will receive a “Thumbs Up” emoji indicating that the assignment was approved

inline