Viewing the history of a file

To see the history of a file we use

git log file_path/file_name.ext

Here we can also use the --oneline option for showing a less verbose version of the log, the --stat option to see stats of what changed, or the --patch option to see the actual changes.

Viewing the history of a file 1