Automatically commit your code with AI-generated commit messages.
AutoSync Git watches your project files, stages changes, generates intelligent commit messages using AI, and creates commits automatically — keeping your Git history clean and organized.
- AI-Generated Commit Messages — Creates meaningful commit messages based on your staged changes.
- Automatic File Watching — Detects file changes in real time.
- Smart Staging — Automatically stages modified files before committing.
- Conventional Commit Format — Commit messages follow conventional commit style.
- Works With Any Git Repository — Simply initialize inside a Git project and start coding.
Install globally using npm:
npm install -g autosync-gitautosync-git initThis will create the necessary configuration files for AutoSync Git in your project.
autosync-git loginYou will be prompted to enter your Gemini API key. This key is used to generate AI commit messages.
autosync-git startAutoSync Git will now:
- Watch for file changes
- Stage modified files
- Generate an AI commit message
- Commit automatically
autosync-git stopStops the file watcher and prevents automatic commits.
After starting AutoSync Git:
autosync-git startEdit your files, for example:
src/auth/loginController.js
src/auth/authMiddleware.js
When changes are detected, AutoSync Git generates a commit like:
feat(auth): add jwt authentication middleware
Another commit could look like:
fix(api): correct user data validation
| Command | Description |
|---|---|
autosync-git init |
Initialize AutoSync Git configuration |
autosync-git login |
Add your AI API key |
autosync-git start |
Start the file watcher |
autosync-git stop |
Stop the watcher |
autosync-git config |
Show current configuration |
- Node.js 18 or higher
- Git installed
- Gemini API key for AI commit generation
MIT License