ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Git blame

by frou ST3

Show Git blame information while viewing a file in Sublime Text

Labels git, blame

Details

Installs

  • Total 28K
  • Win 5K
  • OS X 15K
  • Linux 8K
Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9
Windows 0 11 6 9 3 1 3 5 3 3 7 3 6 6 6 7 10 4 3 7 8 8 6 5 6 5 3 10 9 13 8 13 4 4 5 11 5 4 8 0 4 6 13 10 3 4
OS X 1 17 26 28 5 5 23 15 21 13 27 8 7 22 23 29 20 23 6 4 25 15 24 16 17 4 7 17 28 16 21 17 1 2 16 20 19 19 13 3 2 17 19 25 20 17
Linux 0 16 11 11 3 5 8 17 15 10 13 0 1 17 7 23 16 12 3 7 11 13 7 11 7 6 5 15 16 16 12 7 3 6 16 10 14 8 13 3 5 12 13 7 11 13

Readme

Source
raw.​githubusercontent.​com

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:

Screenshot

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.