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.
git blame on GitHub Enterprise:
- Navigate to a repository, and click on a file that you're interested in.
- Click on the Blame button in the upper-right tab list.
- Browse the list of changes in a file.
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.