Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在设置一个 git 服务器,它镜像我们的主 git 服务器上存在的所有现有和未来的存储库。由于我无法静态列出所有要镜像的存储库,我想知道检索此列表并在每个存储库上执行“git clone --mirror”的最佳方法。
或者,保持镜像同步的推送方法也可以。别人在做什么?我是 git 新手(系统管理员)。
简单地说:
ssh theservername ls /some/path/under/which/the/repos/live/