Quickstart
Start using GitBot in under a minute
Quickstart
Start an Interactive Session
Just run gitbot with no arguments:
gitbot
You'll see the GitBot prompt. Type any Git question:
gitbot> what's the difference between merge and rebase?
Ask a Single Question
For quick one-off questions:
gitbot ask "how do I squash my last 3 commits?"
Built-in Commands
Inside the interactive session, these commands are available:
| Command | Description |
|---|---|
/help | Show available commands |
/clear | Clear conversation history |
/history | Show conversation summary |
/run git ... | Execute a git command directly |
/quit | Exit GitBot |
Command Execution
When GitBot suggests a git command, it will offer to run it for you:
gitbot> create a new branch called feature/auth
To create and switch to a new branch:
git checkout -b feature/auth
Run: git checkout -b feature/auth
Execute this command? [y/N]
Type y to execute, or n to skip.
Safety Levels
GitBot classifies commands by risk:
- Safe (green) — Read-only commands like
git status,git log - Caution (yellow) — Commands that modify state like
git push,git rebase - Dangerous (red) — Destructive commands like
git reset --hard,git push --force