Git is a version control system that you will be using to manage your lab projects.
You will receive an email "invitation" for a git repository on Bitbucket.
If you don't yet have a Bitbucket account, create one through the link in the email.
Follow the two tutorials from Bitbucket:
Online Book/PDF
To avoid having to enter your bitbucket password every time you access the remote repository, you create an SSH key pair.
To create an SSH key pair, login to your Linux account and create an SSH key pair with the command:
ssh-keygen
This creates a subdirectory .ssh of your login directory and files: id_rsa and id_rsa.pub
Upload (copy and paste) your public key from the id_rsa.pub file (not the private id_rsa) into your Bitbucket account. (Can do this later if you want to skip it for now.)
A repository was created by the instructor, but giving you write permission. The name of the repository will show up in Bitbucket as: csc374w2015/[...]-374.git, where [...] is your Linux login.
Clone this repository. In BitBucket click the "clone" button and copy either the ssh command (if you have already copied ssh keys into Bitbucket) or the https command and paste it at the Linux prompt. E.g.
git clone git@bitbucket.org:csc374w2015:[...]-374.git
or
git clone https://[...]@bitbucket.org/374w2015/[...]-374.git
where the name of the repository [...] will be your login.
This will create a directory for the repository, but it will initially be empty - no files.
Change to this directory and create a subdirectory, lab1, for the shell lab files.
The shell lab files need to be in your repository directory so that they can managed by git and easily be uploaded (submitted). I suggest putting them in the lab1 subdirectory of your repository.
To do this, use one of the following:
If you have NOT yet downloaded the tar file, first change to the lab1 subdirectory of you new repository directory.
Get the initial files for the shell lab:
wget http://condor.depaul.edu/glancast/374class/shlab-handout.tar
Extract the files from the tar file:
tar ovxf shlab-handout.tar
If you have already dowloaded the tar file but not made any changes, you can just move the tar file to your lab1 directory and extract the files as above with the tar command.
If you have downloaded the tar file, extracted files, AND made changes, you can just move the files to your lab1 subdirectory in your repository directory.
For example, if your extracted files are currently in directory named dir1 and your repository directory is ~/jsmith-374, change to dir1 and move or copy the files from dir1 to ~/jsmith-374/lab1.
cd ... (to dir1) mv * ~/jsmith-374/lab1
cd ... (to dir1) cp * ~/jsmith-374/lab1