首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2013-10-10 
阿里云搭建私有Git及用户管理转载须注明原文地址:http://blog.csdn.net/btyh17mxy/article/details/124517

阿里云搭建私有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
支持一个

热点排行