We have a gitweb instance running off of caffeine. Each club member may have their own directory. Projects used by CSC as a whole are hosted in the
Note: currently, root permissions are required to create a new repo. If you would like CSC to host a git repo for you, please email syscom.
Creating a public project
Make sure you part of the
gitgroup. If not, add yourself to the group via ceo. Note that it may take a while until the servers synchronize with LDAP. Use the
groupscommand to check if you part of the
Login to caffeine and run the following:
become_club git cd /srv/git/public git init --bare projectname.git chmod -R g+x projectname.git
On any other CSC machine, you can clone the repo by running the following:
git clone /srv/git/public/projectname.git
On a non-CSC machine, you can clone the repo by running the following:
git clone email@example.com:/srv/git/public/projectname.git
If you wish to push an existing repo to an empty repo on the server, run the following:
git remote add csc firstname.lastname@example.org:/srv/git/public/projectname.git git push csc branchname
Creating a personal project
On caffeine, run
become_club git and create the directory
Login to aspartame and run, as root,
chown username /srv/git/username.
As your regular user, you can now create subdirectories under
git init --bare projectname.git.
See the previous section for instructions on how to clone/push to your repo.