Creation of a git repo
On Satanas :
- ssh on
satanas.net.xif.fr cd /data/git/mkdir {repo}.git && cd {repo}.gitgit init –bare- Add
sharedRepository = trueinto section[core]of./config - Edit
./description mv hooks/post-update.sample hooks/post-update && chmod +x hooks/post-updatein order to rungit update-server-infoafter each pushgit update-server-infocd .. && 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- Move the code into. Commit :
git add *andgit commit -m "Initial commit" - Edit
.git/configand 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 - Push the code :
git push satanas master(you have to have a SSH key ongit@satanas)
You'll read* [new branch] master → master - Enjoy your hard work at http://satanas.net.xif.fr:1234/gitw/?p={repo}.git