GoForum › 🌐 V2EX

开源了 gitb — Rust 多仓库 git 工具,批量操作,超快!

daniel2493468168 · 2026-07-06 02:08 · 0 次点赞 · 0 条回复

管着 30 多个仓库,每天 cd 进去 git pull 30 次太烦了,用 Rust 写了个多仓库批量工具 gitb:

gitb status        # 一眼看所有仓库状态
gitb pull -j 8     # 并行拉取
gitb doctor        # 健康检查

比 gita ( Python )快 3 倍左右,50 个仓库 pull 1.2s vs 4.5s 。有未提交改动的时候 pull 会自动 stash → pull → pop ,不会再报冲突。

安装:cargo install gitb 或 brew install luolin1024/git-batch/gitb

GitHub: https://github.com/luolin1024/git-batch

求 star ,求反馈。

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: daniel2493468168
发布: 2026-07-06
点赞: 0
回复: 0