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/id_dsa.pub or ~/.ssh/id_rsa.pub).
    • 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://_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

Unknown macro: {code}

[user]
email = __YOUR_EMAIL_HERE__
name = __YOUR_NAME_HERE__
[branch]
autosetupmerge = true
[color]
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
[color]
ui = true
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
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
[push]
default = simple

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