Back to lessons
Navigating Commit History
Explore and search through your project's Git history like a pro.
Step 1 of 520%
Git's log command is your window into the project's history. With various flags, you can search, filter, and visualize commits.
git log is one of the most versatile Git commands, with dozens of formatting and filtering options. By default it shows the full commit hash, author, date, and message — but that's just the beginning. You can customize the output to show exactly what you need, whether it's a quick overview with --oneline or a deep dive with -p to see the actual code changes in each commit.
1 / 5