我有一个具有以下结构的 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/