[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],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**."]]