读书人

阿里地区云搭建私有Git及用户管理

发布时间: 2013-10-10 14:14:51 作者: rapoo

阿里云搭建私有Git及用户管理

转载须注明原文地址:http://blog.csdn.net/btyh17mxy/article/details/12451715

这里使用的操作系统是CentOS release 5.9 (Final),并且已经安装了git和一些必要的开发工具。

在服务器上创建用户和项目仓库(repository)
<VirtualHost *:80>    ServerName gitserver    DocumentRoot /var/www/cgi-bin/gitweb    <Directory /var/www/cgi-bin/gitweb>        Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch        AllowOverride All        order allow,deny        Allow from all        AddHandler cgi-script cgi        DirectoryIndex gitweb.cgi    </Directory></VirtualHost>
宾果,这就弄好了!

可能遇到的问题git clone git@IP:gitosis-admin.git
Initialized empty Git repository in /home/yang/gitosis-admin/.git/
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly


// 解决方法,在管理员PC上
# ssh-add ~/.ssh/id_rsa


1楼u011960402昨天 09:05
支持一个

读书人网 >编程

热点推荐