git how to know history of a file code example Example: git file history git log --follow -p -- path-to-file