@jiereal/git-tools
v1.0.0
Published
Batch git-status viewer and other helpers
Maintainers
Readme
git-tools
一组轻量 Shell 脚本,帮助你在多个 Git 仓库里批量执行常用命令,提高日常开发效率。
功能一览
git-multi-status—— 一次性查看多个仓库的git status
快速开始
克隆仓库
git clone https://github.com/<your-name>/git-tools.git cd git-tools把脚本目录加入 PATH(可写入
~/.zshrc或~/.bashrc)export PATH="$PATH:$(pwd)/shells"体验第一个命令
git-multi-status ~/Code # 查看 ~/Code 目录下所有 Git 仓库状态
添加新脚本
- 在
shells/目录新建可执行脚本 - 保持脚本首行
#!/usr/bin/env bash并chmod +x filename - 提 PR 并更新下方「脚本清单」
脚本清单
| 文件名 | 作用描述 | |------------------|---------------------------------| | git-multi-status | 批量查看各仓库的 git status |
开发指南
- 脚本遵循 Google Shell Style Guide
- 变量命名使用
snake_case,函数使用lower_case_with_underscores - 所有脚本必须带
--help参数或-h选项
贡献
欢迎 Issue & Pull Request!请确保本地执行通过以下检查:
shellcheck shells/*许可证
MIT © $(date +%Y) $(git config user.name)
