Commit & Push
Streamline your commit workflow.
gli combines staging, committing, and pushing into a single command, saving you keystrokes and time.
Manual Commit
The default mode allows you to quickly commit all changes.
Interactive Mode
Simply run the command to open an interactive prompt for your commit message.
gli -c
# or
gli --commitDirect Message
Provide the message as an argument for a faster workflow.
gli -c "feat: implementation completed"Skip Hooks
Bypass pre-commit and pre-push hooks when you need speed or are pushing a WIP.
gli -c "wip: save work" -nv
# or
gli -c "wip: save work" --no-verifyAI-Powered Commit
Let AI analyze your changes and suggest a professional commit message.
gli -ac
# or
gli --ai-commitTip
Just like manual commits, you can use -nv or --no-verify with AI commits to skip any pre-commit or pre-push hooks.
How it works
- Analysis: gli captures the
git diffof your staged changes. - Generation: It sends the diff to our AI service which generates a message following Conventional Commits.
- Review: You are presented with the message and four options:
- [1] Commit & Push: Accept the message and push immediately.
- [2] Regenerate: Request a different variation of the message.
- [3] Edit: Open a manual prompt to tweak the AI's suggestion.
- [4] Cancel: Abort the operation and return to the terminal.