JSPM

git-agent-cli

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q55757F
  • License MIT

🧠 Git Agent – All-in-One Git CLI with AI-Powered Commits. A smart terminal-based Git assistant that simplifies your Git workflow and boosts productivity by automating frequent Git operations.

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

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


💡 Quick Start Guide

  1. Install globally:

    npm install -g git-agent-cli
  2. Run the CLI:

    git-agent
  3. 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:

  1. Make your changes
  2. Select C&P from the menu
  3. Let AI generate a commit message
  4. Review and confirm or edit
  5. 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


🤝 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

Manage your GitHub code easily without hard commands!