14.04架设Git及Gitolite,还要将mirror过来的仓库做成主仓库,再分给相关人员,后续还要建分支,是否有相关的人员可以支持,付费的也可以,不想再闭门造车了。有的话请加QQ:22942677
今天建仓库出错,无从下手。
gl-setup -q ~/gitadmin_id_rsa.pub
***** ABORTING *****
bad reponame 'users/CREATOR/[a-zA-Z].*' or you forgot to set $GL_WILDREPOS
/usr/local/bin/gl-setup: line 197: cd: /home/git/repositories/gitolite-admin.git: No such file or directory
fatal: Unable to create '/.git/index.lock': Permission denied
error: could not lock config file /.git/config: Permission denied
error: could not lock config file /.git/config: Permission denied
*** FATAL ***
gitadmin_id_rsa.pub maps to no access, not gitadmin_id_rsa.
You will not be able to access gitolite with this key.
Look for the 'ssh troubleshooting' link in http://sitaramc.github.com/gitolite/.
初始化仓库出错。但是我在本地Vware里建又正常。很奇怪。。。
14.04架设Git及Gitolite
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 1
- 注册时间: 2018-01-03 17:31
- 系统: ubuntu14.04
- 九天星
- 帖子: 1440
- 注册时间: 2007-07-14 20:45
Re: 14.04架设Git及Gitolite
代码: 全选
$ sudo apt-get install git
代码: 全选
$ sudo adduser git
代码: 全选
$ sudo git init --bare sample.git
代码: 全选
$ sudo chown -R git:git sample.git
代码: 全选
git:x:1001:1001:,,,:/home/git:/bin/bash
代码: 全选
git:x:1001:1001:,,,:/home/git:/usr/bin/git-shell
现在,可以通过git clone命令克隆远程仓库了,在各自的电脑上运行:
代码: 全选
$ git clone git@server:/srv/sample.git
warning: You appear to have cloned an empty repository.