Git Inspector
View repository status, browse commit history, and perform basic Git operations.

Summary View
| Field | Description |
|---|---|
| Branch | Current branch name with checkout button |
| Last commit | SHA, message, and author of the latest commit |
| Remote | Remote name and URL |
| Status | Current git status output |
Actions
| Action | Description |
|---|---|
| Checkout | Switch to any branch (validated: alphanumeric, /, ., -, _) |
| Pull | Run git pull --rebase=false |
| Fetch | Run git fetch --tags |
Commit Log

Browse the last 20 commits with SHA, message, and author info.
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /inspect/api/git/summary | Branch, SHA, remotes, status |
| GET | /inspect/api/git/log | Last 20 commits |
| POST | /inspect/api/git/checkout | Switch branch |
| POST | /inspect/api/git/command | Run pull or fetch |
Checkout request body:
json
{
"branch": "feature/my-branch"
}Command request:
POST /inspect/api/git/command?command=pullTIP
Git operations use the Gitonomy library for safe repository interaction.