root登录
#
cd /home/
# ls
#useradd git
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# yum install git
#git --version
#yum install lrzsz
切换到git用户:
git clone https://github.com/sitaramc/gitolite.git
在git根目录下面新建bin目录
$mkdir bin
$./gitolite/install --to /home/git/bin/
$szid_rsa.pub(此处是将git仓库管理员的公钥上传到这里)
$bin/gitolite setup -pk ./id_rsa.pub (初始化仓库管理员)
$cd repositories/
此时管理员的仓库就新建好了,repositories下面有2个仓库,gitolite-admin.git testing.git
git clone git@192.168.1.97:gitolite-admin.git
原文链接:https://www.f2er.com/centos/380083.html