Skip to content

Musti7even/no-shit-commit-messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 No-Shit-Commit-Messages

Stop writing shitty commit messages.
Just run git commit -m "" β€” we’ll handle generating a nice commit message.

Uses GPT-5-mini currently.

πŸš€ Install

brew tap Musti7even/no-shit-commit-messages
brew install no-shit-commit-messages
export OPENAI_API_KEY=sk-...
alias git='nscm'

πŸ’‘ Usage

git add .
git commit -m ""        # β†’ AI generates commit message
git commit -m "manual"  # β†’ still behaves normally, to give you max freedom
git commit               # β†’ opens editor as usual

Example output:

🧠 Generating commit message…
πŸ’¬ "feat(ui): improve layout responsiveness on profile page"

 2 files changed, 10 insertions(+), 3 deletions(-)

βš™οΈ Configuration

Optional ~/.nscmrc:

provider: openai
model: gpt-5-mini-2025-08-07
style: conventional

Environment variables override the config file:

  • NSCM_PROVIDER β€” provider to use (default: openai)
  • NSCM_MODEL β€” model identifier (default: gpt-5-mini-2025-08-07)
  • NSCM_STYLE β€” style hint (default: conventional)
  • OPENAI_API_KEY β€” required when provider is openai

πŸ› οΈ Development

Project layout:

no-shit-commit-messages/
β”œβ”€ nscm.py
β”œβ”€ brew/
β”‚  └─ no-shit-commit-messages.rb
β”œβ”€ README.md
β”œβ”€ LICENSE
└─ .github/workflows/release.yml

Run locally without Homebrew:

export OPENAI_API_KEY=sk-...
python3 ./nscm.py commit -m ""

🧭 Roadmap

  • Ollama or even faster model providers
  • additional context for better commit messages
  • Optional interactive confirmation
  • --dry-run previews
  • Submit to Homebrew core once stable

MIT Β© 2025 / Mustafa Yenler

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published