管着 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 ,求反馈。