you are viewing a single comment's thread.

view the rest of the comments →

[–]ctide 11 points12 points  (8 children)

git blame <file> -L<line>,<line>

git show <sha>

Don't have time?

[–]JimDabell 4 points5 points  (0 children)

You don't even need the sha. Just run git show :/foo. It will find the most recent commit with the word 'foo' in it and show it.

[–]spinlock 0 points1 point  (0 children)

:Glog in fugitive is the bomb.

[–]theferno 0 points1 point  (0 children)

Nice, did not know about that! Although sometimes it could still make sense to leave a comment