This will setup and configure git and GitHub on Matrix. Run everything as your local user, unless indicated otherwise.
- Configure git with your full name and Seneca e-mail address:
git config --global user.name "Firstname Lastname"
git config --global user.email "yoursenecaid@myseneca.ca"
git config --global pull.rebase false(optional) You may want to add a key to Github to reduce password prompts. Generate an SSH key-pair to add to your GitHub account:
ssh-keygen # Follow defaults (hit enter)
cat ~/.ssh/id_rsa.pubCopy/paste your public key from above (starting from 'ssh-rsa') to your GitHub account:
- If you have an exisiting ops445 directory, rename it:
mv ~/ops445 ~/old_ops445This will download Lab 1 locally, allowing you to work on your scripts and upload (push) them back up to GitHub.
- Click the green Code button at the top of this page. Select SSH and copy the address.
- Clone your lab repository into your ~/ops445/lab1 directory, using Ctrl+Shift+V to paste the address:
git clone <pasted address> ~/ops445/lab1/When you have completed all sections of the lab, no submission to Blackboard is necessary. Complete the following steps:
- Run the checking script. Make sure you identify and correct any and all errors in your scripts:
cd ~/ops445/lab1/
pwd #confirm that you are in the right directory
python3 ./CheckLab1.py -f -v - Create laboutput.txt by redirecting the output from CheckLab1.py:
python3 ./CheckLab1.py -f -v &> laboutput.txt- Commit and push (upload) your lab work:
git add lab*
git commit -m "Individual message or note."
git pushYou can make changes to your scripts and reupload as many times as you like. Make sure you commit+push to do so.
Note: Your lab is automatically submitted at the due date and time using the last published code. Any changes you publish after the due date won't be marked or seen by your professor.