On Satanas :
satanas.net.xif.fr
cd /data/git/
mkdir {repo}.git && cd {repo}.git
git init –bare
sharedRepository = true
into section [core]
of ./config
./description
mv hooks/post-update.sample hooks/post-update && chmod +x hooks/post-update
in order to run git update-server-info
after each pushgit update-server-info
cd .. && chown -Rv git:dev {repo}.git
Then at the local repo :
git clone http://satanas.net.xif.fr:1234/git/{repo}.git && cd {repo}.git
git add *
and git commit -m "Initial commit"
.git/config
and replace [remote "origin"]
and [branch "master"]
sections by : [remote "satanas"] url = ssh://git@satanas.net.xif.fr:222/data/git/{repo}.git fetch = +refs/heads/*:refs/remotes/satanas/* [branch "master"] remote = satanas merge = refs/heads/master
git push satanas master
(you have to have a SSH key on git@satanas
) * [new branch] master → master