首页 > 代码库 > 搭建git服务器

搭建git服务器

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

搭建git服务器