Viewing commit history.
Sometimes you need to look at the history of a particular project. Git keeps a log of all commits to a codebase. You can view the log by typing "git log". You will see commits in reverse order, and can scroll through commits with the Return/Enter key.
You can quit viewing the log at any time by pressing 'q'.
$ git log $ git log -p