The blame command is a Git feature, designed to help you determine who made changes to a file.

Despite its negative-sounding name, git blame is actually pretty innocuous; its primary function is to point out who changed which lines in a file, and why. It can be a useful tool to identify changes in your code.

To use git blame on GitHub Enterprise:

  1. Navigate to a repository, and click on a file that you're interested in.
  2. Click on the Blame button in the upper-right tab list.
  3. Browse the list of changes in a file.

Git Blame Changes list

By clicking on the commit SHA (the sequence of random letters and numbers), you can get a full diff view of the changes made at that point in time. Each git blame row also has the commit message made by the author, which helps identify why they made the change to the file.