how to check history of particular file in git code example Example: git file history git log --follow -p -- path-to-file