Show Git blame information while viewing a file in Sublime Text
- Total 25K
- Win 5K
- OS X 13K
- Linux 7K
|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||May 29||May 28||May 27||May 26||May 25||May 24||May 23||May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4|
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.
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. Click × or press the keyboard shortcut again to close the blame information.
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). Click × or press the keyboard shortcut again to close them.
This package's commands are also made available in the Command Palette. Type “Git Blame” into it to find them.