Main /
Git
Clone / Pull
To clone a public repository, for example doc;
$ git clone git://sophia.host/doc
Push
This instructions assume you already setup your ssh? client and generated your keys, add following to your ~/.ssh/config, in this example we will call host sophia that will handle server git settings, replace alice with name of your key (user);
Host sophia
Hostname git.sophia.host
Port 1337
User gitolite
IdentityFile ~/.ssh/alice
If local repository already exists after cloning a public repository, add new remote, in this example we call it "private";
$ git remote add private sophia:doc.git $ git fetch --all
If a fresh clone;
$ git clone sophia:doc
