talira

Git Blame

See who last changed the current line, and when, in VS Code's status bar or inline

open sourceMITfree

A Visual Studio Code extension by Albin Jacobsson that shows Git blame information for the selected line in the status bar or inline: which commit last changed it and how long ago. Commands open that commit in the popular online Git hosts, copy its hash or URL, or run git show for it in a terminal. It supports SHA-1 and SHA-256 repositories and works with WSL, but not in browser-based editors. MIT licensed.

Problems it solves

  • see who changed this line and when without leaving the editor
  • jump from a line of code to the commit that last touched it on GitHub
  • a lightweight git blame in VS Code without a big Git extension

Features

  • blame for the selected line in the status bar or inline
  • open the line's last commit in an online Git host
  • copy the commit hash or its URL
  • git show for the line's commit in a terminal
  • SHA-1 and SHA-256 repositories

Limitations

  • Doesn't work in browser-based editors1

Alternatives

The same job

These do what Git Blame does.

  1. GitLens Git blame, history and a commit graph inside VS Code, from GitKraken

Compare Git Blame with the top 3