Git通过管理员远程添加项目和用户

来源:互联网 发布:百度大数据研究院 编辑:程序博客网 时间:2024/06/05 18:47

上一章写了最后一步就是关于gitosis-admin下载下来

用户的.pub必须放在keydir中(如果没有就得交用户传给管理员)

存在的方式是"用户1.pub""用户2.pub"

gitosis.conf


[group 项目名字]
writable = 项目名字
members = 用户1 用户2



提交修改了gitosis.conf执行命令

git add .
git commit -am "add member 用户 and project 项目名字"
git push



创建项目

mkdir 项目
cd 项目
git init
touch hello.txt
git add hello.txt
git commit -am 'first commit'
git remote add origin git@192.168.1.188:项目.git
git push origin master
0 0