@azcodes/gitaz
v1.3.1
Published
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.
Readme
Gitaz - AI Git Assistant
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.
Features
- 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)
Installation
You can install gitaz globally using npm:
npm install -g gitazSetup
Before using gitaz, you need to configure your own AI provider, model and API key.
gitaz setupCommands Reference
1. gitaz setup
Configure your AI provider, model and API key.
gitaz setup2. gitaz commit
Generate 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-changes3. gitaz summary
Summarize 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 304. gitaz explain
Get a detailed explanation abou5 a particular commit, know what changed in a particular commit.
gitaz explain <commit hash>Configuration
Gitaz stores configuration globally in your user home directory. (~/gitaz.json).
Config Format:
{
"model": "<model-name>",
"serverUrl": "<server-url>",
"apiKey": "<api-key>"
}Wanna work on Gitaz
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 gitazInstall dependencies
npm installWrite 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 buildCreate a pull request Feel free to create a PR, your contribution is really valuable
Licence
MIT
AI Usage Disclaimer
AI was used in this project to help with AI Providers setup.. all other feature were written by me..
