This page is about the
git setup at UNB FCS. For information about
using git, see
git-quickref.
I am currently using git for sharing certain
course materials and for handing in assignments, tests and labs in
some courses.
There is no expectation of privacy on this system. Anything uploaded
may be read by FCS sysadmins or myself. Every upload and download is
logged.
If you signed up late for the course, contact the instructor to have
a personal repo created for you.
Access to the FCS git repos is available from
all machines in FCS Linux Labs. Be aware of
scheduled use of these labs when planning to work on or hand in
coursework.
Remote access (either via lab machines or directly) to FCS git
repos is available if you are connected to the
UNB VPN.
All repositories URLs are of the form
https://<user>@vcs.cs.unb.ca/git/<course>-<user>
where <user>
is FCS Linux account username for
personal repositories.
To set up a remote
git remote add origin $URL
Here origin
is the name of the default remote. You will probably
only need
To change the URL of a remote
git remote set-url origin $NEWURL
Authentication is against the FCS LDAP password database (same as
login to lab machines). To reduce the number of times you have to
type your username/password (if your desktop environment doesn't cache it for
you), you may want run
% git config credential.https://vcs.cs.unb.ca.username <loginid>
% git config credential.helper cache
Note that you should not replace cache
with store
as this
method is not secure. You can optionally used --global
.