history file with git command code example Example: git file history git log --follow -p -- path-to-file