An AI-powered terminal tool that analyzes your git repositories and provides intelligent insights about your commit patterns and coding habits.
- Repository Analysis: Get detailed insights about your commit patterns
- Commit Message Helper: Generate better commit messages with AI assistance
- Productivity Insights: Learn about your most productive coding times
- Bun runtime
- Git installed and accessible in your PATH
- Gemini API key (get one from Google AI Studio)
- Clone this repository:
git clone https://github.com/01shrvan/gitwise.git
cd gitwise- Install dependencies:
bun install- Create a
.envfile with your API key:
GOOGLE_GENERATIVE_AI_API_KEY=your_api_key_here
- Link the command globally (optional):
bun linkNavigate to any git repository and run GitWise commands:
gitwise analyzeThis will analyze your git history and provide insights about:
- Commit patterns and frequency
- Your most productive days and hours
- Commit message quality
- Suggestions for better git practices
gitwise commit-help "fix the login bug"This will return an improved commit message following git best practices.
analyze --days <number>- Specify the number of days of history to analyze (default: 30)
MIT