A CLI tool to commit changes in all git repositories within a directory structure.
- Recursively scans directories for git repositories
- Commits changes with a custom message
- Identifies projects without git repositories
- Interactive CLI with prompts for directory and commit message
- Provides a summary of operations performed
# Clone the repository
git clone https://github.com/yourusername/git-commit-all.git
cd git-commit-all
# Install dependencies
npm install
# Build the project
npm run build
# Install globally
npm install -g .
Run the CLI:
git-commit-all
The CLI will:
- Ask for the root directory path (defaults to ~/projects)
- Ask for the commit message (defaults to "save before restoring laptop")
- Ask for confirmation before proceeding
- Scan all directories and commit changes where needed
- Display a summary of operations performed
# Run in development mode with watch
npm run dev
# Build the project
npm run build
# Run the built version
npm start
MIT