.nh .TH "GT-COMMIT-LIST" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-commit-list - List commits .SH SYNOPSIS \fBgt commit list [] [flags]\fP .SH 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. .PP 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. .SS ARGUMENTS .EX 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. .EE .SS JSON FIELDS .EX additions, author, author_email, author_login, authored_at, committed_at, committer, committer_email, committer_login, deletions, files, message, parents, sha, url, verification_reason, verified .EE .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for list .PP \fB-L\fP, \fB--limit\fP=30 Maximum number of results (1..1000) .PP \fB--not\fP="" Leave out the commits that this \fBref\fR has too .PP \fB--page\fP=1 Result page .PP \fB--path\fP="" Only commits that changed this file or directory .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--csv\fP="" Output CSV with the specified comma-separated \fBfields\fR .PP \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB-q\fP, \fB--jq\fP="" Filter JSON output using a jq \fBexpression\fR, of every field without --json .PP \fB--json\fP="" Output JSON with the specified comma-separated \fBfields\fR .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--template\fP="" Format JSON output using a Go \fBtemplate\fR, of every field without --json (see gt help formatting) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ 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])"' .EE .SH SEE ALSO \fBgt-commit(1)\fP