---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/get-commits.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/operations/get-commits.md
  - href: en/sourcecraft/operations/get-commits.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# Viewing the commit history in SourceCraft

<!-- source: en/_includes/sourcecraft/commit-intro.md -->
_Commits_ are records of changes to the repository containing a description, author info, and timestamp.
<!-- endsource: en/_includes/sourcecraft/commit-intro.md -->

{% note tip %}

<!-- source: en/_includes/sourcecraft/commit-association-intro.md -->
SourceCraft gets the author name and email for each commit from `git`. If the email in the `git` settings matches the SourceCraft user email, the commit is automatically associated with that user in the repository, with their SourceCraft username, avatar, and profile link displayed in the commit history.

You can have several email addresses associated with your profile, in which case commits containing these addresses will be attached to your account.
<!-- endsource: en/_includes/sourcecraft/commit-association-intro.md -->

For more information, see [Setting up an email address for commit association in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/commit-association.md).

{% endnote %}

To view your commit history:

{% list tabs %}

- Repository

  <iframe width="640" height="360" src="https://runtime.strm.yandex.ru/player/video/vplvzahkiu7aljbppidt" allow="fullscreen; picture-in-picture; encrypted-media" frameborder="0" scrolling="no"></iframe>

  1. Open the SourceCraft [home page](https://sourcecraft.dev).
  1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
  1. Select a repository.
  1. Under ![image](../../_assets/console-icons/code.svg) **Code** on the repository page, go to ![image](../../_assets/console-icons/archive.svg) **Overview**.
  1. In the drop-down list ![image](../../_assets/console-icons/code-trunk.svg), select the branch whose commits you want to view.
  1. Click ![image](../../_assets/console-icons/clock-arrow-rotate-left.svg) **History** to the right.

  You can also view the revision history under ![image](../../_assets/console-icons/code.svg) **Code** → ![image](../../_assets/console-icons/code-commit-horizontal.svg) **Commits**.

- Pull request

  1. Open the SourceCraft [home page](https://sourcecraft.dev).
  1. On the ![image](../../_assets/console-icons/house.svg) **Home** tab, under ![image](../../_assets/console-icons/layout-tabs.svg) **Your craftspace**, navigate to ![image](../../_assets/console-icons/archive.svg) **Repositories**.
  1. Select a repository.
  1. Under ![image](../../_assets/console-icons/code.svg) **Code** on the repository page, go to ![image](../../_assets/console-icons/code-pull-request.svg) **Pull requests**.
  1. Select the pull request whose commits you want to view.
  1. Navigate to the ![image](../../_assets/console-icons/code-commit-horizontal.svg) **Commits** tab.

{% endlist %}

#### Useful links {#see-also}

* [Navigating and searching by code in SourceCraft](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-navigation.md)
* [Editing code in SourceCraft Code Assistant](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/code-edit.md)
