
What's the git log command?
git log is commonly used to review recent recent activity on your Git repo (e.g. on GitHub, GitLab, Bitbucket). You inspect the history of past commits by walking backwards in time from HEAD (your current position) through the chain of commits. In essence, you're asking the question "what has happened in this repository?" Here are some typical arguments:
git log --oneline for example is very handy, as it produces a nicely formatted and color-coded output, showing one commit per line. This example was produced by running git log --oneline -n 7, showing info for the last 7 commits:

This git log history tells a clear story. You're currently on the snowflake_integration branch (HEAD points there), and you've made several commits beyond where the remote origin/snowflake_integration sits. The local main branch and origin/main are in sync at commit 8d4f1a5, while your feature branch has advanced five commits ahead. The two tags bracket a series of "wild" experimental commits, which is a useful pattern for marking before/after points when doing risky work. Here's a visual breakdown of all the info and color code contained in command's output:

