[Git] Show the commit message at HEAD

Created on November 30, 2026

Use git log -1 --pretty=%B to print the most recent commit message. -1 limits the output to one commit, and %B prints the complete message, including the subject and body.

git log -1 --pretty=%B
Git