1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/github/managing-files-in-a-repository/tracking-changes-in-a-file.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

1.9 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Tracking changes in a file You can trace changes to lines in a file and discover how parts of the file evolved over time.
/articles/using-git-blame-to-trace-changes-in-a-file/
/articles/tracing-changes-in-a-file/
/articles/tracking-changes-in-a-file
free-pro-team enterprise-server
* *

With the blame view, you can view the line-by-line revision history for an entire file, or view the revision history of a single line within a file by clicking {% octicon "versions" aria-label="The prior blame icon" %}. Each time you click {% octicon "versions" aria-label="The prior blame icon" %}, you'll see the previous revision information for that line, including who committed the change and when.

Git blame view

In a file or pull request, you can also use the {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %} menu to view Git blame for a selected line or range of lines.

Kebab menu with option to view Git blame for a selected line

{% tip %}

Tip: On the command line, you can also use git blame to view the revision history of lines within a file. For more information, see Git's git blame documentation.

{% endtip %}

{% data reusables.repositories.navigate-to-repo %} 2. Click to open the file whose line history you want to view. 3. In the upper-right corner of the file view, click Blame to open the blame view. Blame button 4. To see earlier revisions of a specific line, or reblame, click {% octicon "versions" aria-label="The prior blame icon" %} until you've found the changes you're interested in viewing. Prior blame button