GT-COMMIT-LIST(1) gitea-cli Manual GT-COMMIT-LIST(1) NAME gt-commit-list - List commits SYNOPSIS gt commit list [] [flags] DESCRIPTION List the commits reachable from a branch, a tag or a commit, newest first; by default from the default branch. --path keeps the commits that changed a file or directory and --not leaves out those that another ref has too. The additions, deletions and files of --json cost the server extra work and are read only when the output includes them, as are verified and verification_reason. ARGUMENTS A repository can be supplied as NAME (one of yours), OWNER/NAME, HOST/OWNER/NAME or a URL. Without an argument, the repository of the current Git clone is used. JSON FIELDS additions, author, author_email, author_login, authored_at, committed_at, committer, committer_email, committer_login, deletions, files, message, parents, sha, url, verification_reason, verified OPTIONS -h, --help[=false] help for list -L, --limit=30 Maximum number of results (1..1000) --not="" Leave out the commits that this ref has too --page=1 Result page --path="" Only commits that changed this file or directory OPTIONS INHERITED FROM PARENT COMMANDS --csv="" Output CSV with the specified comma-separated fields --cwd="" Working directory for repository discovery --debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr --host="" Gitea instance URL, including any base path --interactive[=false] Allow prompts with machine output -q, --jq="" Filter JSON output using a jq expression, of every field without --json --json="" Output JSON with the specified comma-separated fields --no-input[=false] Disable prompts and implicit editor/browser interactions --remote="" Git remote used for repository discovery -R, --repo="" Select a repository as OWNER/REPO or URL --sudo="" Perform API requests as this user (requires an administrator account) --template="" Format JSON output using a Go template, of every field without --json (see gt help formatting) --user="" Account name on the selected instance EXAMPLE $ gt commit list $ gt commit list release/1.2 --limit 50 $ gt commit list --path internal/app/ --not v1.0.0 $ gt commit list --json sha,author_login,message --jq '.[] | "\(.sha[:7]) \(.message | split("\n")[0])"' SEE ALSO gt-commit(1) gitea-cli Nov 2026 GT-COMMIT-LIST(1)