有没有办法获得由 gitosis 管理的所有 git 存储库的紧凑列表。
我正在寻找类似的东西
svn list url_to_repo
Run Code Online (Sandbox Code Playgroud)
我知道我可以看看gitosis.conf,但这太罗嗦了。
据我所知,如果不检查 gitosis.conf 文件或无法访问 gitosis 存储库目录(远程或本地),则无法检查您可以使用 gitosis 访问哪些存储库
您应该使用gitolite来满足该需求。
Gitolite 易于安装,用法几乎与 gitosis 相同(单用户访问,使用带有配置文件和 keydir 的存储库来配置服务等),但它允许为每个分支设置权限(如果需要),与 gitweb 同步,以及一堆其他选项(实际上很多!)
最好的部分是您可以使用 ssh 将“info”命令发送到服务器,它会列出您有权访问的存储库。
例如:命令
anUser@computer> ssh git@my-git-server info
Run Code Online (Sandbox Code Playgroud)
会在屏幕上显示类似的东西
hello anUser, the gitolite version here is v1.5.7-4-g270e0b9
the gitolite config gives you the following access:
R+ W Repo1
R W Repo2
R Repo3
@R_ @W_ testing
Run Code Online (Sandbox Code Playgroud)