Installation
Complete guide to installing GitGuru on your system.
System Requirements
- Node.js: Version 16.0.0 or higher
- npm: Version 7.0.0 or higher (or yarn 1.22.0+)
- Git: Version 2.20.0 or higher
- Operating System: Windows, macOS, or Linux
Install via npm (Recommended)
The easiest way to install GitGuru is through npm:
bash
npm install -g gitguruThe -g flag installs GitGuru globally, making the gg command available from anywhere in your terminal.
Install via Yarn
If you prefer Yarn:
bash
yarn global add gitguruVerify Installation
After installation, verify that GitGuru is installed correctly:
bash
gg --versionYou should see the version number (currently 0.1.8 ).
bash
gg aboutThis displays detailed information about your GitGuru installation.
Installation Complete
If you see the version number, GitGuru is successfully installed! Next, you'll need to configure your Gemini API key.
Get Your Gemini API Key
To use GitGuru's AI features, you need a free Gemini API key:
- Visit Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy your API key
Free Tier
Google's Gemini API offers a generous free tier that's perfect for GitGuru. No credit card required.
Configure API Key
Add your API key to GitGuru:
bash
gg addkey YOUR_API_KEY_HEREReplace YOUR_API_KEY_HERE with your actual API key.
Keep Your API Key Secure
Your API key is stored locally in your home directory. Never share it or commit it to version control.
Troubleshooting
Command Not Found
If you get "command not found" after installation:
- Make sure npm's global bin directory is in your PATH
- Try closing and reopening your terminal
- Check npm's global bin location:
npm bin -g
Permission Errors
On Unix systems, you might need sudo:
bash
sudo npm install -g gitguruHowever, it's better to fix npm permissions properly.
Updating GitGuru
To update to the latest version:
bash
npm update -g gitguruUninstall
To uninstall GitGuru:
bash
npm uninstall -g gitguru