Episode 7 of 14

Viewing the Project History

Learn about Viewing the Project History

Access commit history: Run the command git log to view a descending list of all the commits made in the repository. Read the log output: The log displays the unique commit hash, the author, the date, and the commit message. Exit the log: If your log is long, press the Q key to exit the log viewer and return to the command prompt. View one-line history: Run git log --oneline to view a compressed, easier-to-read version of your commit history. Filter history by author: You can search for commits made by a specific person using git log --author="Name". Show commit differences: Run git log -p to see the actual code differences introduced in each commit.