π§ Gitmit
Gitmit is a lightweight CLI tool that analyzes your staged changes and suggests professional commit messages following the Conventional Commits format.
π Why Gitmit?
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.
β¨ Features
- Smart Analysis: Understands your changes using
git status and git 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
π Installation
Using Go Install
go install github.com/andev0x/gitmit@latest
From Source
git clone https://github.com/andev0x/gitmit.git
cd gitmit
go build -o gitmit
sudo mv gitmit /usr/local/bin/
Binary Releases
Download pre-built binaries from the releases page.
π Usage
Basic Usage
# Stage your changes
git add .
# Run gitmit
gitmit
Command Line Options
gitmit --help # Show help message
gitmit --version # Show version number
gitmit --dry-run # Show suggestion without committing
gitmit --verbose # Show detailed analysis
π€ Contributing
We welcome contributions! Please see the Contributing Guide for details.
Development Setup
# 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 --help
π License
This project is licensed under the MIT License. See the LICENSE file for details.
π Acknowledgments
Made with β€οΈ by the open source community
If you find Gitmit useful, please consider giving it a β on GitHub!