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

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.