doc/user/project/repository/commits/_index.md
{{< details >}}
{{< /details >}}
{{< history >}}
{{< /history >}}
The Commits list displays the commit history for your repository. Use it to browse code changes, view commit details, and verify commit signatures. Commits are grouped by day, and you can filter the list by author, commit message, date, or Git revision.
The list shows:
To view your repository's commit history:
To view a commit's full description, select the expand ({{< icon name="chevron-down" >}}) icon on the right side of the commit. To collapse the description, select the expand ({{< icon name="chevron-down" >}}) icon again.
Examine the specific changes made in any commit, including file modifications, additions, and deletions.
To view a commit's details:
The commit's details page shows:
To view all repository files and folders at a specific Git revision, such as a commit SHA, branch name, or tag:
You are directed to the repository page at that specific revision.
Use the search bar to filter the commit history by author, commit message, or date. You can combine multiple filters at the same time.
To filter commits by date:
To view commits for a specific date range, use both filters together.
To filter commits by one or more authors:
The list updates to show only commits from the selected authors.
If author filtering doesn't work for names with special characters, use the URL parameter format.
For example, append ?author=Elliot%20Stevens to the URL.
To filter commits by Git revision, such as branch, tag, or commit SHA:
To search for commits by message content:
You can also search by commit SHA, full or partial, to find a specific commit directly.
{{< history >}}
{{< /history >}}
When you filter the commits list or change the page size, the URL updates to reflect your current view. You can:
The URL uses these parameters:
| Parameter | Description |
|---|---|
author | Username of the commit author. |
message | Text to match in commit messages. |
committed_after | Earliest commit date, in YYYY-MM-DD format. |
committed_before | Latest commit date, in YYYY-MM-DD format. |
page_size | Number of commits per page. Default is 20. |
The commit list uses cursor-based pagination. To move between pages:
The commits page includes an actions menu with quick links for the current Git revision.
To access the actions menu:
The actions menu includes:
Apply changes from a specific commit to another.
Prerequisites:
To cherry-pick a commit:
GitLab creates a new commit on the target branch with the cherry-picked changes. If the branch is protected or you don't have the correct permissions, GitLab prompts you to create a new merge request.
Create a new commit that undoes changes from a previous commit.
Prerequisites:
To revert a commit:
GitLab creates a new commit that reverses the changes from the selected commit. If the branch is protected or you don't have the correct permissions, GitLab prompts you to create a new merge request.
To download a commit's diff contents:
GitLab verifies GPG, SSH, and X.509 signatures to ensure commit authenticity. Verified commits show a Verified badge.
For more information, see signed commits.
To view signature information:
The commit list includes a CI/CD pipeline status icon next to each commit. To view the pipeline details: