Skip to content

joaquinrojash/gitai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# gitai

AI-powered git commit message and PR description generator.

Reads your git diff and generates a conventional commit message in seconds.

## Install

pip install gcommitai

export ANTHROPIC\_API\_KEY="your-key-here"

## Usage

\# Generate a commit message for staged changes

gitai commit



\# Stage everything and commit in one step  

gitai commit --auto



\# Preview without committing

gitai commit --dry-run



\# Generate a PR description vs main branch

gitai pr



\# PR description vs a different branch

gitai pr --base develop

## Example output


╭─── Suggested commit ───╮

│ feat(auth): add OAuth2  │

│ login with Google       │

╰─────────────────────────╯

Use this message? \[y/n]:

## Requirements

- Python 3.10+

- An Anthropic API key (get one free at console.anthropic.com)

## License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages