Package Exports
- git-agent-cli
- git-agent-cli/bin/git-agent.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-agent-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🧠 Git Agent – All-in-One Git CLI with AI-Powered Commits
git-agent-cli
is a smart, terminal-based Git assistant that simplifies your Git workflow and boosts productivity by automating frequent Git operations. It also enhances your commit process using AI-generated commit messages powered by advanced AI models.
🚀 Features
- ✅ Clone repositories easily
- 🔄 Pull latest changes from remote
- 📦 Stage files (all or individual)
- 📊 Check Git status
- 🧠 Automatically generate commit messages using AI
- ⬆️ Commit and push in one go
- 🧩 Interactive and user-friendly terminal menu
📦 Installation
Global Installation (Recommended)
npm install -g git-agent-cli
Local Installation
npm install git-agent-cli
Using npx (No Installation)
npx git-agent-cli
🎯 Usage
Simply run the command in your terminal:
git-agent
You'll see an interactive menu with the following options:
- c - Clone a repository
- p - Pull latest changes
- a - Add files to staging
- s - Check Git status
- C&P - Commit with AI-generated message and push
- E - Exit
🔧 Requirements
- Node.js >= 14.0.0
- Git must be installed on your system
- Download from: https://git-scm.com/downloads
💡 Quick Start Guide
Install globally:
npm install -g git-agent-cli
Run the CLI:
git-agent
Start using Git with ease!
- Clone repos
- Make changes
- Let AI generate commit messages
- Push with confidence
🤖 AI-Powered Commits
Git Agent uses AI to analyze your staged changes and generate meaningful commit messages automatically. Simply:
- Make your changes
- Select C&P from the menu
- Let AI generate a commit message
- Review and confirm or edit
- Push to remote!
🔄 Update Package
npm update -g git-agent-cli
🗑️ Uninstall Package
npm uninstall -g git-agent-cli
📝 Example Workflow
# Start git-agent
$ git-agent
# Clone a repository (option: c)
➡️ Enter your Request => c
🔗 Enter GitHub repo URL: https://github.com/username/repo.git
# Make your changes in the code editor...
# Add all files (option: a)
➡️ Enter your Request => a
# Commit and push (option: C&P)
➡️ Enter your Request => c&p
📝 Wait for Commit msg...
🤖 Suggested Commit Message: Add new feature for user authentication
✅ Use this message? (y/n): y
✅ Commit successful.
✅ Push successful.
🛠️ Troubleshooting
Git not found error
If you see "Git is NOT installed", install Git from https://git-scm.com/downloads
Permission errors on Windows
Run your terminal as Administrator when installing globally
Command not found after installation
Try:
npm config get prefix
Make sure the prefix/bin directory is in your PATH environment variable
📄 License
MIT License - feel free to use this in your projects!
👨💻 Author
Niraj Paradva
- GitHub: @Paradva-Niraj
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
⭐ Show your support
Give a ⭐️ if this project helped you!
📊 Package Info
- NPM Package: git-agent-cli
- Command:
git-agent
- Repository: https://github.com/Paradva-Niraj/git-agent-cli
Manage your GitHub code easily without hard commands!