GLI

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 --commit

Direct 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-verify

AI-Powered Commit

Let AI analyze your changes and suggest a professional commit message.

gli -ac
# or
gli --ai-commit

Tip

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

  1. Analysis: gli captures the git diff of your staged changes.
  2. Generation: It sends the diff to our AI service which generates a message following Conventional Commits.
  3. 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.

On this page