Checking Out Code for Development

Skip to end of metadata
Go to start of metadata

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/ or ~/.ssh/
    • If you don't have an SSH public key, generate one using
      $ ssh-keygen -t rsa
  • 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://
    This will check out the code to the folder oioioi.
  • Install the Gerrit commit-msg hook
    $ scp -p -P 29418 oioioi/.git/hooks/

Example .gitconfig

Unknown macro: {code}

email = __YOUR_EMAIL_HERE__
name = __YOUR_NAME_HERE__
autosetupmerge = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
ui = true
st = status
ci = commit
cam = commit --amend
br = branch
rbi = rebase -i
co = checkout
df = diff
dff = diff --name-only
c-p = cherry-pick
f-p = format-patch
lg = log -p
l = log --abbrev-commit --pretty=oneline
tree = log --graph --all --decorate --pretty=oneline
review = push origin HEAD:refs/for/master
default = simple

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.