Skip to content
/ gitmit Public

A lightweight CLI tool that analyzes your staged changes and suggests professional commit messages following the Conventional Commits format — without relying on AI.

License

Notifications You must be signed in to change notification settings

andev0x/gitmit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitmit

Go Version License: MIT Go Report Card

🧠 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/

Getting an OpenAI API Key :))

  1. Visit the OpenAI website at OpenAI.
  2. If you don't have an account, click on "Sign Up" to create one. If you do, click "Log In".
  3. Once logged in, navigate to your API key management page.
  4. Click on "Create new secret key".
  5. Enter a name for your new key, then click "Create secret key".
  6. Your new API key will be displayed. Use this key to interact with the OpenAI API.

Note: Your API key is sensitive information. Do not share it with anyone.

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

Author @github

If you find Gitmit useful, please consider giving it a ⭐ on GitHub!

About

A lightweight CLI tool that analyzes your staged changes and suggests professional commit messages following the Conventional Commits format — without relying on AI.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published