gitosis安装补充说明
安装部署具体可以参考http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way,或者参考《pro git》相关章节。这里只列出对问题的总结。
1.gitosis-init时直接使用git账户操作即可
[root@localhost ~]# git clone git@localhost:gitosis-admin.gitCloning into gitosis-admin...git@localhost's password:fatal: 'gitosis-admin.git' does not appear to be a git repositoryfatal: The remote end hung up unexpectedly
原因:
客户端和服务端的公钥授权没配置正确,解决即可。
另:
因为触发了密码授权,提示错误确实是因为路径找不到,参考第3点,这时候如果写绝对路径,也可以获取到项目,但是绕过了gitosis的权限控制。