DEV Community

Discussion on: Essential git commands every developer should know

Collapse
 
k4ml profile image
Kamal Mustafa

To see history of changes at specific line:-

git blame -L337,+5 -- src/myproject/services.py

To see evolution at line 337:-

git log --pretty=short -u -L 337,337:src/myproject/services.py