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

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.