Don't use blame
because git blame
only shows the LAST commit of that particular line.
- Install sublime-text-git
shift + command + p
in Sublime- Type in
Custom command
- Select
Git: Custom Command
. It'll open a panel at the bottom of Sublime. - Type in
log -L START_LINE_NUMBER,END_LINE_NUMBER:CURRENT_FILE_NAME.EXT
For example: log -L 1,1:index.js
will show the git history for line #1 of index.js
.
Thanks for sharing! I often need this and didn't know it's possible with

git log -L ...
. Also just installed and found Sublime Merge allows to do this nicely