Tracking changes in a file | github blame
Withtheblameview,youcanviewtheline-by-linerevisionhistoryforanentirefile,orviewtherevisionhistoryofasinglelinewithinafilebyclicking.Eachtimeyouclick,youllseethepreviousrevisioninformationforthatline,includingwhocommittedthechangeandwhen.Inafileorpullrequest,youcanalsousethemenutoviewGitblameforaselectedlineorrangeoflines.Tip:Onthecommandline,youcanalsousegitblametoviewtherevisionhistoryoflineswithinafile.Formoreinformation,seeGitsgitblamedocumentation[1].OnGitHub.com,navigatetothemainpageoft...
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 . Each time you click , youll see the previous revision information for that line, including who committed the change and when.
In a file or pull request, you can also use the menu to view Git blame for a selected line or range of lines.
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 Gits git blame documentation[1].
On GitHub.com, navigate to the main page of the repository. Click to open the file whose line history you want to view. In the upper-right corner of the file view, click Blame to open the blame view. To see earlier revisions of a specific line, or reblame, click until youve found the changes youre interested in viewing. References Gits git blame documentation (git-scm.com)