Skip to content

0verread/smart-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smart-commit

A python CLI tool to generate git commit messages using OpenAI

This project is under active development.

How to use it

  1. Setup your OpenAI account and grab an API key from your dashboard
  2. Save that API key as env variable
  export OPENAI_API_KEY='sk-********'

you can also save it in your bash profile, so it remains persistence.

  1. Now, you can install smartcommit using pip
pip install https://github.com/0verread/smart-commit/archive/refs/tags/v1.0.0.tar.gz
  1. Run scommit. Now you're good to go.

Usage

Once you've set your OPENAI_API_KEY and installed smartcommit using pip, you can use it using scommit commnad.

Credit

This project is inspired by Miguel Piedrafita's project auto-commit

TODO

  • pip installer
  • Support args
  • Error handling

License

This project is released under MIT License