On the server:
svnadmin create svnrepo
svn co svn+ssh://username@name.of.your.server/absolute/path/to/svnrepo
On the server (in $HOME):
mkdir gitrepo cd gitrepo/ git init
git clone username@name.of.your.server:gitrepo
On the server (in $HOME):
hg init hgrepo
hg clone ssh://username@name.of.your.server/hgrepo
This is an extension to scie.nti.st » Hosting Git repositories, The Easy (and Secure) Way by Garry Dolley describing how to install gitosis in completely non-root environments.
Adapt this for your login shell, if you're not using bash.
export PATH=$PATH:$HOME/opt/bin export PYTHONPATH=$PYTHONPATH:$HOME/opt/lib/python2.5/site-packages/
Source it:
. ~/.bashrc
Only do this if setuptools isn't installed already and you can't install it as root!
Find the latest version of setuptools at http://pypi.python.org/pypi/setuptools.
mkdir -p ~/opt/lib/python2.5/site-packages/ wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9-py2.5.egg sh setuptools-0.6c9-py2.5.egg --prefix="$HOME/opt"
git clone git://eagain.net/gitosis.git cd gitosis python setup.py install --prefix="$HOME/opt"
For further instructions, please refer to scie.nti.st » Hosting Git repositories, The Easy (and Secure) Way.