2

I have use git blame and git log file.py to find changes, but is there a way to see the changes on a specific line on a file? For example: Line 84 on file index.html.

phd
  • 82,685
  • 13
  • 120
  • 165
irm
  • 4,073
  • 6
  • 28
  • 32

1 Answers1

7

Very simple:

git blame -L 84,84 index.html
FelipeC
  • 9,123
  • 4
  • 44
  • 38
  • 1
    this is a very direct and simple answer to a simple question - the duplicate is much more complicated, this just works – bdanin Feb 15 '18 at 03:25
  • The question was wrongly marked as a duplicate. The correct answer to the other question involves `git log`, this one uses `git blame`. Two completely different commands that generate completely different output. – FelipeC Dec 13 '21 at 19:56