doc/user/project/repository/files/git_history.md
{{< details >}}
{{< /details >}}
Git file history provides information about the commit history associated with a file:
Each commit shows:
GitLab retrieves the user name and email information from the Git configuration of the contributor when the user creates a commit.
To see a file's Git history in the UI:
{{< history >}}
{{< /history >}}
When reviewing history for old files, or files with many commits, you can limit the search results by date. Limiting the dates for commits helps fix commit history requests timeouts in very large repositories.
In the GitLab UI, edit the URL. Include these parameters in YYYY-MM-DD format (dates are interpreted in UTC):
committed_beforecommitted_afterSeparate each key-value pair in the query string with an ampersand (&), like this:
?ref_type=heads&committed_after=2023-05-15&committed_before=2023-11-22
The full URL to the range of commits looks like this:
https://gitlab.com/gitlab-org/gitlab/-/commits/master/CONTRIBUTING.md?ref_type=heads&committed_after=2023-05-15&committed_before=2023-11-22