Specify the parent folder and execute the git command cyclically for subfolder
npm install @zgo/git-dirA CLI tool to execute git commands recursively in all subdirectories that contain a .git folder.
``bash`
npm install -g @zgo/git-dir
The package will automatically install the correct binary for your platform (Linux, macOS, Windows) and architecture (x64, arm64).
`bash`
git-dir [-d directory]
- -d directory: Specify the parent directory to search for git repositories (default: current directory)
`bashCheck status of all git repos in current directory
git-dir status
How it works
The tool will:
1. Scan the specified directory (or current directory) for subdirectories
2. Check each subdirectory for a
.git` folder- Linux (x64, arm64)
- macOS (x64, arm64)
- Windows (x64, arm64)
ISC