Gitmit is a lightweight CLI tool that analyzes your staged changes and suggests professional commit messages following the Conventional Commits format.
Ever struggled to write a clear and concise commit message? Gitmit simplifies this process by analyzing your changes and suggesting commit messages that adhere to industry standards.
- Smart Analysis: Understands your changes using
git statusandgit diff - Conventional Commits: Follows the standard format (e.g.,
feat,fix,refactor) - Interactive Mode: Customize or accept suggestions interactively
- Privacy First: Operates entirely offline
- Cross-Platform: Works on Linux, macOS, and Windows
go install github.com/andev0x/gitmit@latestgit clone https://github.com/andev0x/gitmit.git
cd gitmit
go build -o gitmit
sudo mv gitmit /usr/local/bin/Download pre-built binaries from the releases page.
# Stage your changes
git add .
# Run gitmit
gitmitgitmit --help # Show help message
gitmit --version # Show version number
gitmit --dry-run # Show suggestion without committing
gitmit --verbose # Show detailed analysisWe welcome contributions! Please see the Contributing Guide for details.
# Clone the repository
git clone https://github.com/andev0x/gitmit.git
cd gitmit
# Install dependencies
go mod download
# Run tests
go test ./...
# Build the project
go build -o gitmit
# Run locally
./gitmit --helpThis project is licensed under the MIT License. See the LICENSE file for details.
- Inspired by Conventional Commits
- Built with Cobra CLI
- Colored output by Fatih Color
Made with ❤️ by the open source community
If you find Gitmit useful, please consider giving it a ⭐ on GitHub!