1 $ git clone --bare ${current_repository} ${new_repository}
2 $ touch ${new_repository}/git-daemon-export-ok
3 $ git daemon --base-path=${parent of new_repository}
everything is ready,your git repository is git://ip/${new_repository}
pull:
git clone git://ip/${new_repository}
push:
git push yourname@ip:/${parent of new repository}/${new_repository}
阅读(905) | 评论(0) | 转发(0) |