git:镜像远程 git 服务器上存在的所有存储库?

发布于 2024-12-21 06:17:14 字数 173 浏览 4 评论 0原文

我正在设置一个 git 服务器,该服务器镜像我们主 git 服务器上存在的所有现有和未来的存储库。由于我无法静态列出要镜像的所有存储库,我想知道检索此列表并对每个存储库执行“git clone --mirror”的最佳方法。

或者,保持镜像同步的推送方法也可以。其他人在做什么?我是 git (系统管理员) 的新手。

I am in the process of setting up a git server that mirrors all existing and future repositories that exist on our primary git server. Since I can't statically list all repositories to mirror I am wondering the best way to retrieve this list and perform 'git clone --mirror' on each.

Alternatively a push method that keeps the mirror in sync would be fine too. What are others doing? I'm new to git (sys admin).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提赋 2024-12-28 06:17:14

简单来说怎么样:

ssh theservername ls /some/path/under/which/the/repos/live/

How about simply:

ssh theservername ls /some/path/under/which/the/repos/live/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文