Explain git log code

Paste what git log printed and Vibe explains each commit, what the Merge: line and (HEAD -> main) mean and how to read the --graph lines.

git-log.txt

Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.

Vibe22 lines selected

Press Explain it for the sample, or paste your own code first.

What this git log sample shows

commits
Each entry is one commit, newest first: its full hash, who wrote it, when, and the message. --oneline keeps only a short hash and the first line, so 6dd93ddd5276... became 6dd93dd. git log -1 --format='%h %an %ad %s' --date=short printed 6dd93dd Sam Lee 2026-11-04 Merge branch 'discount'.
merges
A merge commit has two parents, and the Merge: line lists them: b0b26af is the commit main was on, and 6788b88 is the branch's last commit. HEAD^1 named Say how to run it and HEAD^2 named Let total take a discount.
the graph
In --graph, each * is a commit and the lines show history splitting and joining: |/ is where discount branched off after Add cart total, and |\ is where the merge brought it back. --decorate adds the names that point at a commit: HEAD -> main is the branch you're on, tag: v1.0 a tag and (discount) the branch.
filtering
git log --author=Ana listed only Let total take a discount, and git log -- cart.js only the 2 commits that changed that file. git log discount..main lists what main has that discount doesn't: the merge and Say how to run it. main..discount printed nothing, because the branch is fully merged.

Good to know

  • Made with git 2.55.0 in a test repo with fixed names and dates, so the same commands give the same hashes. The graph's |\ and |/ lines end in spaces in git's output; they're trimmed here.
  • git log -p adds each commit's diff, and --stat a summary: for Ana's commit, cart.js | 4 ++-- and 1 file changed, 2 insertions(+), 2 deletions(-).
  • A long log opens in a pager, less unless you set another, so it can look stuck: press q to get back to the prompt.

Watch out: A plain git log sorts every merged branch's commits into one list by date, so it isn't the order work landed on main: git log --oneline listed the merge, Say how to run it, then Ana's Let total take a discount from the branch, then Add cart total. git log --first-parent follows only main's side of each merge and listed 4 commits, the merge, Say how to run it, Add cart total and Start the shop, without Ana's.

Explain git log code beside your editor

Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).

Install on Mac

curl -fsSL https://unvibe.site/install.sh | bash

Paste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.

Opening the .dmg the first time
  1. Open the .dmg and drag Unvibe to Applications.
  2. Open it once; macOS says it can't verify it. Click Done.
    macOS dialog: Unvibe Not Opened, with Done and Move to Trash
    Real screen, macOS 15
  3. System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.
    macOS Privacy & Security, Security section: Unvibe was blocked to protect your Mac, with the Open Anyway button
    Real screen, macOS 15

The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open