Effective June 17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't previously used Cloud Source Repositories, you can't enable the API or use Cloud Source Repositories. New projects not connected to an organization can't enable the Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to June 17, 2024 are not affected by this change.
Stay organized with collections
Save and categorize content based on your preferences.
When viewing a file in Cloud Source Repositories, use the Blame or History options to
learn more about changes to the file view, such as what lines changed and when.
View the Blame pane
The Blame pane displays information about who made what change to a file and
when.
For each line in the file, this panel displays:
The name of the user who authored the commit.
A number that indicates when the change occurred in the history of that file.
A username and change number can appear multiple times for a given file. For
example, if a user changed multiple lines in a file and submitted those changes
in a single commit, each affected line would contain the same username and
change number.
To open the Blame pane, follow these steps:
In the Google Cloud console, open Cloud Source Repositories.
The All repositories page opens. Alternatively, you can open the
My source
view.
Click a repository.
Browse to the file you want to view and click it.
In the upper-right corner, click Blame.
View additional details about a commit
With the Blame pane in view, you can view additional details about a change to
a file.
To see additional details, hover over the change number and the author's name
in the Blame pane.
A Commit Details dialog appears, which displays information such as:
The Commit ID
A description of the commit
The author commit date
The name of the author
To open the change history for this file, click Show in change history in
the dialog.
View the history of a file
You can also learn about how a file changed over time through the History
option. This option opens a Change History section, which contains information
about each commit that affected the file.
You can view the history for a file from the File view or the Blame
layer.
File view
In the Google Cloud console, open Cloud Source Repositories.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Following the history of a file\n\nWhen viewing a file in Cloud Source Repositories, use the Blame or History options to\nlearn more about changes to the file view, such as what lines changed and when.\n\nView the Blame pane\n-------------------\n\nThe Blame pane displays information about who made what change to a file and\nwhen.\n\nFor each line in the file, this panel displays:\n\n- The name of the user who authored the commit.\n- A number that indicates when the change occurred in the history of that file.\n\nA username and change number can appear multiple times for a given file. For\nexample, if a user changed multiple lines in a file and submitted those changes\nin a single commit, each affected line would contain the same username and\nchange number.\n\nTo open the Blame pane, follow these steps:\n\n1. In the Google Cloud console, open Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n\n The **All repositories** page opens. Alternatively, you can open the\n [My source](/source-repositories/docs/browsing-repositories#browsing_to_a_repository)\n view.\n2. Click a repository.\n\n3. Browse to the file you want to view and click it.\n\n4. In the upper-right corner, click **Blame**.\n\n### View additional details about a commit\n\nWith the Blame pane in view, you can view additional details about a change to\na file.\n\nTo see additional details, hover over the change number and the author's name\nin the Blame pane.\n\nA Commit Details dialog appears, which displays information such as:\n\n- The Commit ID\n- A description of the commit\n- The author commit date\n- The name of the author\n\nTo open the change history for this file, click **Show in change history** in\nthe dialog.\n\nView the history of a file\n--------------------------\n\nYou can also learn about how a file changed over time through the History\noption. This option opens a Change History section, which contains information\nabout each commit that affected the file.\n\nYou can view the history for a file from the File view or the Blame\nlayer. \n\n### File view\n\n1. In the Google Cloud console, open Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n\n The **All repositories** page opens. Alternatively, you can open the\n [My source](/source-repositories/docs/browsing-repositories#browsing_to_a_repository)\n view.\n2. Click a repository.\n\n3. Browse to the file you want to view and select it.\n\n4. Click **Change history** in the lower corner of the page.\n\n The Commit History panel displays a list of commits. Each row\n displays the hash for that commit as a hyperlink.\n\n### Blame pane\n\n1. In the Google Cloud console, open Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n\n The **All repositories** page opens. Alternatively, you can open the\n [My source](/source-repositories/docs/browsing-repositories#browsing_to_a_repository)\n view.\n2. Click a repository.\n\n3. Browse to the file you want to view and click it.\n\n4. In the upper-right corner, click **Blame**.\n\n5. Choose one of the following options:\n\n - Click the change number.\n - Hold the pointer over the change number or author's name to open the [Commit Details](#view_additional_details_about_a_commit) dialog, and then click **Show in change history**.\n\nOpen a file as it existed for a specific commit\n-----------------------------------------------\n\n1. Open the Change History pane using either the\n [Blame](#viewing_the_Blame_pane) pane or the\n [Change History](#viewing_the_history_of_a_file) pane.\n\n The Change History pane opens.\n2. Locate the commit.\n\n3. Hold the pointer over that commit's row.\n\n A **View** button displays on the same row as the commit.\n4. Click **View**."]]