This page describes the steps necessary to complete programming assignments on your personal computer.
To access your available Git repositories on your personal computer, you need to copy over the appropriate SSH related files from the University Linux server. The SSH files act as your password to access the course repositories so they need to be on your personal computer.
Open Git BASH on Windows (Download link) or a terminal emulator on OSX or Linux, go to your home directory, and copy your SSH keys and configuration file to your machine with the following commands:
cd
scp USER@csitrd.kutztown.edu:~/.ssh/USER_git_id* ~/.ssh/
scp USER@csitrd.kutztown.edu:~/.ssh/config ~/.ssh/
where USER
is your university id.
Git needs some configuration information before you can start making commits to your course repository. The minimal configuration requires that you set your name and email address. This can be done by executing the following two commands:
git config --global user.name "Your Name"
git config --global user.email "USER@live.kutztown.edu"
where USER
is your university ID.
You may optionally choose to set the default text editor that Git will use to create commit messages like so:
git config --global core.editor "nano"
The nano text editor is a decent choice on the Linux server if you are unfamiliar with the other options.
In Git BASH on Windows or a terminal emulator on OSX or Linux, clone your repository with the following command:
git clone git-server:spring2020/csc223-SECTION-USER NAME
where SECTION
is the three digit section number,
USER
is your university ID, and NAME
is an
optional name for your course repository.
In Git BASH on Windows or a terminal emulator on OSX or Linux, to setup the
link to assignments repository execute following command from
within the local repository (that means cd
into your
repository directory):
git remote add assignments git-server:spring2020/csc223-SECTION-assignments
where SECTION
is the three digit section number. This command
only needs to be executed a single time after initially cloning the private
repository.