Outdoor Technologist

Random thoughts spewed in the digital realm

View Git History of Specific Line

Sometimes you want to know when a line of code changed and who changed it – This is how.

Source:

https://stackoverflow.com/questions/50469927/view-git-history-of-specific-line

Example (placeholder):

git log -L15,+1:'path/to/your/file.txt'

command linegitlinux

John • 2021-07-28


Previous Post

Next Post