gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 10:46:34 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com