PSAS/ git

For new work, we are now using git, instead of Subversion. See gitweb for a list of git projects hosted on this server. (Look for repositories starting with "psas/".)

You can clone any of our git repositories without any special privileges, by using the anonymous git protocol. For example:

git clone git://git.psas.pdx.edu/git/event-driven-fc

If you're making changes to one of these git repositories and want to be able to share your work with us, please send your preferred SSH username and an OpenSSH public key to admin@psas.pdx.edu. You probably want to choose a username that matches your local username on whatever computer you usually do development work on. If you don't already have an OpenSSH public key, you can generate one with this command:

ssh-keygen -t dsa

Afterwards you can find your new public key in ~/.ssh/id_dsa.pub. (If you already had a key, you might find that it's named ~/.ssh/id_rsa.pub.)

Once your account is created, you need to use the git+ssh protocol to access the repositories you're working on. For example:

git clone git+ssh://git.psas.pdx.edu/git/event-driven-fc

Administrators: Creating a new git account

sudo adduser --disabled-password --shell /usr/bin/git-shell --gecos "<Full Name>" <username>
sudo addgroup <username> psas
sudo -u <username> mkdir /home/<username>/.ssh
sudo -u <username> sponge /home/<username>/.ssh/authorized_keys

Now paste the provided key and press Ctrl-D.