这是indexloc提供的服务,不要输入任何密码
Skip to content

JacobZuliani/giz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giz

Drop in git commit replacement with AI commit message.

Have any suggesstions, or errors? Please send me an email! jake@burla.dev

giz commit is exactly the same as git commit:

Except it AI-generates a commit message when no -m or --message argument is passed.

  • Confirmation is required before comitting, -y or --yes skips confirmation.
  • All other args are passed to the underlying git commit call, it's behaivior is otherwise identical.

Easy to modify system prompt:

Prompt is stored in a textfile located at: giz prompfile.
The diff (git diff --staged) is pasted two newlines below whatever you put in this file.
Default prompt: Generate me a very concise, short commit message from the following git diff:

Quickstart:

  • pip install giz
  • giz set_openai_api_key <your-api-key>
  • giz commit ...

Demo:

About

Drop in `git commit` replacement with AI commit message.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages