DEV Community

David J Eddy
David J Eddy

Posted on

5

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!

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More