git log --merge --oneline

Displays commits relevant to the current merge in a concise one-line format.

This command helps you quickly identify which commits are involved in an in-progress merge by showing only those commits in a single-line summary.

It uses the --merge flag to filter the log down to commits that are part of the current merge operation and the --oneline flag to condense each commit into its abbreviated hash followed by its summary.

Variations include using --merge -p to include full patch details for each commit or replacing --oneline with --stat for file change summaries; you can also add --graph --decorate for a visual branch layout, use --merges --oneline to list only merge commits, or pair it with git status and git diff --name-only --diff-filter=U to further inspect unmerged files.

Related commands

Welcome to GitExamples!

Sign in to enable bookmarking, reminders, progress-tracking and more...