搭建gitserver

1.下载gitosis代码出错

git clone git://eagain.net/gitosis.git
Initialized empty Git repository in /tmp/gitosis/.git/
eagain.net[0: 50.56.185.182]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
能够在github上下载个gitosis
git clone https://github.com/res0nat0r/gitosis.git

2. git clonegit@<server>:gitosis-admin.git出错

fatal: '~/gitosis-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

则改成sudo git clone git@<Server-IP>:/home/git/repositories/gitosis-admin.git

原文地址:https://www.cnblogs.com/wzzkaifa/p/6906742.html