DEV Community

David J Eddy
David J Eddy

Posted on

Git log a range of lines of a file

Found this handy command today, it is a newer usage of 'git blame' with the addition of -L start,end:file/path. Super handy when tracing back the changes to a specific set line group.

git log -L 50,75:./some/path/file.ext

Top comments (2)

Collapse
 
hemanth profile image
hemanth.hm

You might like -> git.io/git-tips

Collapse
 
david_j_eddy profile image
David J Eddy

Thank you @hemanth .hm ! Bookmarked and favorited!