Review a commit¶
Select a commit in the History tree and press Enter (or click Review). Here we review Return 404 as JSON, the commit tagged v0.2.0:

What you see¶
- Files on the left, with added and removed line counts for each. A renamed file is one row marked R at its new name; hovering it names the old one. Up and Down move between files.
- The header names the commit, its author and date, and what it is compared with: Compare with defaults to the first parent and can be any other parent of a merge.
- The reader shows the file's change as a Diff or the Full file, Inline or Side by side. Changed words are highlighted inside changed lines.
- [ and ] jump between changes; Blame (B) shows who last changed each line and File history (H) lists the commits that touched the file; see Follow a file.
- Right-click a file in the list for Read file, File history, Open in editor, Reveal in folder or Copy path.
- Binary files, and files your
.gitattributesmarksbinaryor-diff(for example*.min.js -diff), show Binary content instead of a text diff and count no lines, asgit diffdoes. Images preview side by side.
Typical uses¶
- Check a teammate's change before you merge it
- Review their branch tip, read each file side by side, then merge from the branch's actions.
- Find when a line changed
- Open Blame on the file, then follow the line to the commit that introduced it.
- Follow a file across a rename
- Review the commit that renamed it and press H on the R row (each version shows its date, and the header names the selected version's author and time): File history continues under the old name, back to the commit that added it. A file renamed and rewritten in the same commit still counts as renamed if at least a quarter of it stayed the same.
- Copy an old version
- Switch to Full file to read the whole file as it was in that commit.
Press Esc to go back to the History tree, with the same commit still selected.