git - 无法列出子文件夹中的 git 存储库

标签 git gitolite

我有一个具有以下结构的 gitolit 服务器:

/home/user/repository/test.git
/home/user/repository/folder1/a.git
/home/user/repository/folder1/subfolder1/b.git
/home/user/repository/folder2/c.git

这只是一个示例,有几个文件夹和子文件夹。

当我想用命令列出所有存储库时

ssh git@server info

我只能列出位于根文件夹中的存储库,即:

/home/user/repository/test.git

但我看不到所有其他的。

这有什么理由吗?

最佳答案

来自gitolite的website ,

the info command

The only command that is always available to every user is the info command (run ssh git@host info -h for help), which tells you what version of gitolite and git are on the server, and what repositories you have access to. The list of repos is very useful if you have doubts about the spelling of some new repo that you know was setup.

您可能无权访问这些存储库。

关于git - 无法列出子文件夹中的 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59679263/

相关文章:

node.js - Node 模块 gitignores 自己的 node_modules 目录,破坏了 Heroku 部署

git - Phabricator 第一次 'arc land' 失败

git - Jenkins for Scala (SBT) Git master => Build => Test => Build Docker => Push into hub.docker

Ubuntu 上的 Git 和 Ldap 以及 Apache

git gitolite (v3) 预接收所有提交消息的钩子(Hook)

git - 如何在 Gitolite 中实现提交后钩子(Hook)?

gitolite - keydir 条目不会传播到authorized_keys

git - 我可以强制推送只有我在处理的分支吗?

git - 如何在Jenkins中更改构建开始文件夹

git - 我如何配置 gitweb 和 gitolite 以便它们一起工作?