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
<img width="800" src = "https://www.cs.sfu.ca/~ashriram/Courses/CS431/assets/img/git/AddSSHkey.gif">
The steps below assume the following. Replace with appropriate github id.
You will be provided an assignment-specific starter code on coursys and class website. Use this link to create a specific respository.
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
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
–