To access the read-write version of the Git repository:
- If you don't have a SIO2 Project account yet, come and register!
- Then log in to our Gerrit and upload your SSH public key (which usually is either ~/.ssh/id_dsa.pub or ~/.ssh/id_rsa.pub).
- If you don't have an SSH public key, generate one using
$ ssh-keygen -t rsa
- If you don't have an SSH public key, generate one using
- Make sure that your name and email are specified in ~/.gitconfig. Example configuration is at the end of this page.
- Now checkout the code
$ git clone ssh://_YOUR_LOGIN_@sio2project.mimuw.edu.pl:29418/oioioi
This will check out the code to the folder oioioi.
- Install the Gerrit commit-msg hook
$ scp -p -P 29418 _YOUR_LOGIN_@sio2project.mimuw.edu.pl:hooks/commit-msg oioioi/.git/hooks/
Example .gitconfig
.gitconfig
Labels:
None