git notes show
This command is useful for viewing extra metadata (notes) that have been attached to commits or other Git objects without changing the commit history. It shows any stored notes, such as review comments or deployment info, that have been added via Git’s notes feature.
By default, this command displays the notes for HEAD (the current commit) when run without additional arguments. You can also provide a specific <commit> or object ID (not shown in the base form here) to see notes for that object. Notes themselves are stored separately from commits, so viewing them does not modify the repository.
Related: Use git notes add to create a new note for a commit, git notes edit to modify an existing note, and git notes list to see which objects currently have notes.
Examples:
git notes show(shows notes on the currentHEADcommit)git notes show abc1234(shows notes for a specific commit by its abbreviated hash)git notes show HEAD~1(shows notes for the previous commit)