Skip to main content

First steps (All steps are equally important) - 5 Points

WE CANNOT GRADE YOUR ASSIGNMENT REPO IF YOU DO NOT COMPLETE THESE STEPS (Steps assume OS X or Linux)

Overwrites existing key if you have passwordless login already setup. If you already have password less login set up, simply copy your public key to github

cd ~/.ssh
ssh-keygen # Generates SSH keys (creates two files id_rsa and id_rsa.pub)
ssh -T git@github.com
# By default id_rsa is used for authenticating with github
# Copy id_rsa.pub to github
# If things went correct. You should see a Hi... msg when you try sshing into github

Step 2: Video (does not include generation of ssh keys.).

<img width="800" src = "https://www.cs.sfu.ca/~ashriram/Courses/CS431/assets/img/git/AddSSHkey.gif">

Student flowchart for a 431 assignment - 10 Points

The steps below assume the following. Replace with appropriate github id.

  • Assignment Name: git-tutorial
  • Github id: course-test

Step 1 : Create a student-specific repository

You will be provided an assignment-specific starter code on coursys and class website. Use this link to create a specific respository.

Assignment Link

See animated gif below (_Note that the animations are for a specific assignment. Replace assignment name and (Assignment) (GithubID) with relevant names _)

Once you create the repository you will have a respository with the following name https://github.com/CMPT-431-SFU/[Assignment]-[GithubID]

git@github.com:CMPT-431-SFU/ass0-git-tutorial-course-test.git

Step 2 : Clone your specific repository (this step assumes that you have followed first steps and created an ssh key and uploaded it to github)

Step 3 : Check initial build and files that were checked out.

Step 4 : Complete assignment tasks (_ Check _)

Step 5 : Commit repository

git clone git@github.com:CMPT-431-SFU/git-tutorial-course-test.git
echo "blueberry" >> fruit.txt
echo "mango" >> fruit.txt
git add fruit.txt
git commit -am "Added fruits"
git push

Step 6: Check travis-ci.com

Github tutorial

Github Overview