Changes

Jump to: navigation, search

GitHub Classroom Setup

461 bytes added, 18:03, 22 May 2019
Setup Git on CentOS 7
# When complete, click on the link by “''Your assignment has been created here.''”
# Repeat steps 2, 4, 5, and 6 for each lab and assignment invite link.
# Follow the Migration Instructions below.
== Migration Instructions Setup and Configure Git on CentOS 7 ==# Rename Install git (as root): <syntaxhighlight lang="Bash" inline>yum install git</syntaxhighlight># Configure git with your ops435 directoryfull name: '''mv ~/ops435 ~<syntaxhighlight lang="Bash" inline>git config --global user.name "Firstname Lastname"</old_ops435'''syntaxhighlight># Recreate the directory structureConfigure git with your Seneca e-mail address: '''for x in {1<syntaxhighlight lang="Bash" inline>git config --global user.email "yoursenecaid@myseneca.8}; do mkdir -p ~ca"</ops435/lab$x; done'''syntaxhighlight># Generate a SSH key-pair to add to your GitHub account: <syntaxhighlight lang="Bash" inline>ssh-keygen # Follow the Setup instructions on the GitHub Lab 1 page defaults (this will set up your local repositoryhit enter) '''Don’t forget to clone!'''</syntaxhighlight># Copy Display your backed-up lab work into your local GitHub Lab 1 folderSSH public key to copy/paste: '''cp <syntaxhighlight lang="Bash" inline>cat ~/old_ops435.ssh/lab1/* ~/ops435/lab1id_rsa.pub</'''syntaxhighlight># Submit Paste your work to GitHub per the instructions on the main GitHub lab page. SSH public key (git add, git commit, and git push)# Repeat steps 3starting from ''ssh-5 for each lab and assignment yoursa''ve already worked on) to your GitHub account: https://github.com/settings/ssh/new
== Accessing GitHub Labs and Assignments ==
# All labs and assignments can be found here: https://www.github.com/ops435/
# Each repository contains your own individual code and is set to private. The only people who can see it are you and your professor.
 
== Cloning Labs and Assignments ==
# To clone (download locally) your lab using SSH: <syntaxhighlight lang="Bash" inline>git clone git@github.com:ops435/lab1-yourgithubusername.git ~/ops435/lab1/</syntaxhighlight>
# Substitute your GitHub username and lab number in the above command.

Navigation menu