Skip to content
Show Git blame information while viewing a file in Sublime Text
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add license Feb 10, 2017

GitHub release GitHub contributors GitHub issues PDD status

Git blame - Package for Sublime Text 3

This package enables you to query Git "blame" information for files while you are viewing/editing them in Sublime Text.

Blame information tells you who last edited a line, when they did it, and which commit they did it in. You can then choose to show that commit in full including its commit message and diff.

For this package to work, you must already have the git command-line tool installed, and be viewing/editing a file that is part of a Git repository on your hard drive.

View on the Package Control website

This package was originally created by @psykzz and is now maintained by @frou

How to use

Place the text insertion cursor on the line you are interested in, then press CtrlAltB (Mac/Windows) or CtrlShiftQ (Linux).

(Instead of pressing the keyboard shortcut, you can alternatively right click and select Git Blame from the context menu)

The blame information will appear:


You can then click [Show] to show the commit in full, or [Copy] to copy the Commit ID (aka SHA) to your clipboard. To close the blame information, click the × icon, or press the keyboard shortcut again.

Advanced use

In combination with Sublime Text's Multiple Cursor feature, you can query blame information for more than one line simultaneously by first placing a cursor on each line you are interested in.

You can also query blame information for every line in the entire file simultaneously by pressing CtrlAltShiftB (Mac/Windows) or CtrlShiftC (Linux). To close all of them, click the × icon on one of them, or press the keyboard shortcut again.

This package's commands are also made available in the Command Palette. Type "Git Blame" into it to find them.

You can’t perform that action at this time.