Skip to content

Instantly share code, notes, and snippets.

@chhuang chhuang/README.md
Created Jul 27, 2016

Embed
What would you like to do?
Show Git history for a specific line in Sublime

Don't use blame because git blame only shows the LAST commit of that particular line.

  1. Install sublime-text-git
  2. shift + command + p in Sublime
  3. Type in Custom command
  4. Select Git: Custom Command. It'll open a panel at the bottom of Sublime.
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.