check the commit history of file line by line code example Example: git log for specific file git log -p filename