youmna-git-glance
v2.2.7
Published
AI-powered Git assistant using Google Gemini with advanced features π¦
Downloads
82
Maintainers
Readme
π¦ youmna-git-glance (ygit)
The Git Assistant with Long-Term Memory.
youmna-git-glance is an AI-native CLI that transforms your repository's history into an active knowledge base. Powered by Google Gemini, it uses intelligent keyword extraction to scout your entire commit history, providing AI-powered code reviews, automated professional commits, and context-aware chat that truly understands your codebase.
β‘ Quick Look: Dashboard & AI Chat

π₯ Demo
Click to watch the full walkthrough (AI Review, Smart Chat, and Merge Resolution)
β¨ Features
- π Smart Dashboard: A beautiful, color-coded summary of your branch, changes, and latest commits.
- π€ Gemini AI Commit: Instantly generate professional, one-line commit messages by analyzing your file changes.
- π AI Code Review: Get a senior-level review of your current diff to spot bugs before you push.
- π¬ Smart Context Chat: Ask natural questions about your repository. The AI scans your entire git history using intelligent keyword matching to find relevant commits and deliver context-aware answers.
- π‘οΈ Merge Helper: Solve complex merge conflicts with a step-by-step AI resolution plan.
- β‘ Lightweight & Fast: Built for speed, keeping your hands on the keyboard.
π¦ Installation
Install the tool globally using npm:
npm install -g youmna-git-glanceThen use it anywhere with:
ygitπ Setup & Configuration
To keep ygit private and free, it uses your own Google Gemini API key.
- Get your Key: Visit Google AI Studio and create a new API key.
- Initial Setup: Run
ygit --reset-key. The tool will immediately ask you to paste your new key. - Automatic Prompt: If you forget to set it up, ygit will automatically ask for your key the first time you try to use an AI command like ygit chat or ygit commit.
- Advanced Model Switching (Optional): By default, ygit uses gemini-3-flash-preview. You can override this by creating a .env file in your project root or setting an environment variable:
GEMINI_MODEL=gemini-1.5-flash[!IMPORTANT] Your key is now stored securely in your local machine's config. You won't have to enter it again for future commands.
π Usage
β View available commands & help
ygitβ Check version
ygit -vβ Launch the Hacker Mode Dashboard
ygit -dβ Generate an AI commit message for staged changes
ygit commitβ Analyze current code diff for bugs
ygit reviewβ Ask a question about your repository history
ygit chat "What features did I add yesterday?"The chat command uses advanced keyword extraction to intelligently search your entire git history. It identifies important keywords from your question (like "features", "login", "bugfix") and searches across all branches to find the most relevant commits. If no matches are found, it falls back to your 10 most recent commits, ensuring you always get contextual answers about your work.
Chat Examples:
ygit chat "When did I fix the authentication bug?"
ygit chat "What changes did I make to the database module?"
ygit chat "Show me commits related to the API refactor"β Get help resolving active merge conflicts
ygit merge-helpπ€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
This project is licensed under the MIT License. Feel free to use and modify it.
π Support & Community
- Issues: If you run into any trouble, please open an issue on GitHub.
- Feature Requests: Have an idea for a new AI command? Let us know in the issues!
- Pull Requests: We love community contributions. Feel free to fork the repo and submit a PR.
