Gitaz is a modern, lightweight CLI tool that uses Artificial Intelligence to help you with your daily Git workflow. It helps you draft comprehensive commit messages, stages changes, and summarizes your git commits into clean, human-readable notes.
- AI Generated Commits : Generate git commit messages based on your staged or unstaged diffs.
- Smart Staging & Pushing : Stage, commit, and push your changes in a single command or review the message before applying it.
- Clipboard Integration: Easily copy the AI-generated commit message to your clipboard.
- Summarize Git Log : Automatically summarize Git Log into human-readable notes/summary.
- AI Provider Agnostic : Works with your own AI provider (e.g OpenAI, Google Gen AI, Hack Club AI, etc)
You can install gitaz globally using npm:
npm install -g gitazBefore using gitaz, you need to configure your own AI provider, model and API key.
gitaz setupConfigure your AI provider, model and API key.
gitaz setupGenerate commit message based on your staged or unstaged diffs.
gitaz commitThe Above command will only generate a commit essage with option to copy the message to your clipboard or to apply the changes automatically.
You can use the -p, --auto-apply option to automatically stage, commit and push your changes.
gitaz commit -p
# or
gitaz commit --auto-applyIf you wish to only generate commit message for your staged changes only, you can use the -s, --staged-changes option.
gitaz commit -s
# or
gitaz commit --staged-changesSummarize your recent git commits into structured notes or summaries.
gitaz summaryYou can use the -d, --days <number> option to define the timeframe in days to analyze. (default is 7 days)
gitaz summary -d 30
# or
gitaz summary --days 30Get a detailed explanation abou5 a particular commit, know what changed in a particular commit.
gitaz explain <commit hash>Gitaz stores configuration globally in your user home directory. (~/gitaz.json).
Config Format:
{
"model": "<model-name>",
"serverUrl": "<server-url>",
"apiKey": "<api-key>"
}You can contribute to Gitaz by following the same steps as any other open source project. Raise an issue or create a PR.
-
Clone the repo
git clone https://github.com/mumuniazeez/gitaz.git cd gitaz -
Install dependencies
npm install
-
Write your code
Make the improvement you wanna make
-
Test your code Since the code is written in TypeScript, you'll need to build/compile the code into JavaScript before you can test it.
# To watch for changes and automatically compile npm run dev # To only build npm run build
-
Create a pull request Feel free to create a PR, your contribution is really valuable
MIT
AI was used in this project to help with AI Providers setup.. all other feature were written by me..