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 29K
  • Win 5K
  • OS X 15K
  • Linux 8K
Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29
Windows 0 8 10 7 4 3 0 4 3 6 4 5 1 4 7 6 5 7 7 2 2 8 7 8 7 11 2 1 8 10 4 4 10 2 3 7 4 3 14 8 2 6 7 6 5 5
OS X 0 28 16 23 17 3 5 11 14 28 22 17 10 4 12 13 17 18 22 3 4 9 14 22 26 26 2 1 16 22 29 25 15 2 1 23 26 24 21 21 4 4 9 20 19 27
Linux 0 12 15 17 21 6 5 13 17 12 13 16 3 4 10 17 7 16 9 2 2 16 16 12 23 8 4 8 11 13 12 18 12 3 4 15 14 22 20 19 3 1 5 18 13 10

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.