DEV Community

Daniel
Daniel

Posted on

AI tool for Git

Hi everyone!πŸ‘‹

Here's a grain of sand to all my fellow devs, who like me, enjoy the living in the terminal and sometimes are annoyed by documentation. I created gai to help mitigate some of our struggles, it's an AI-powered Git assistant that aims to make our Git workflow smoother and more efficient.

Ever spent too much time writing commit messages or creating detailed merge requests? Then, gai can help :) It can generate automatically meaningful commit messages and/or pull requests with descriptions based on your code changes.

Short demo:
demo

It supports GitHub and GitLab as of now, and you can also choose between Groq or Hugging Face as your AI Interface.

Here's what makes it special: πŸ’ͺ

  • Just run gai commit and it'll analyze your changes and write a clear commit message
  • Create professional merge requests with gai merge
  • Easy to set up with pip install gai-tool

Quick example:

# Install
pip install gai-tool
# Recommended: pipx install gai-tool

# Set up your tokens
export GROQ_API_KEY='your_key'  # or use Hugging Face

# Start using it
gai commit -a    # Stage all changes and generate a commit message 
gai merge -p     # Push your changes and creates a merge request
Enter fullscreen mode Exit fullscreen mode

I built this tool to make our lives as developers a bit easier, and I'd love to hear your thoughts! What features would you like to see? Any suggestions for improvements?

Check out the full project at: github.com/Danielratmiroff/gai

Hope it helps! Cheers :)πŸ™Œ

Top comments (0)