- Get list all commits for a specific file:
git log --follow filename
Source: https://stackoverflow.com/a/8808453/7651641 - Find commit that first added a particular line of code:
git log -L 123,123:path/to/file.cpp
Source: https://superuser.com/a/939603 - See changes on a specific commit:
git diff COMMIT^!
Source: https://stackoverflow.com/a/17563864/7651641