HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git verify-commit — Check for GPG verification of commits. If no commits are verified, nothing will be printed, regardle

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandverificationgpgclicommitscheckforgit verify-commit

Problem

How to use the git verify-commit command: Check for GPG verification of commits. If no commits are verified, nothing will be printed, regardless of options specified. More information: <https://git-scm.com/docs/git-verify-commit>.

Solution

git verify-commit — Check for GPG verification of commits. If no commits are verified, nothing will be printed, regardless of options specified. More information: <https://git-scm.com/docs/git-verify-commit>.

Check commits for a GPG signature:
git verify-commit {{commit_hash1 optional_commit_hash2 ...}}


Check commits for a GPG signature and show details of each commit:
git verify-commit {{commit_hash1 optional_commit_hash2 ...}} {{[-v|--verbose]}}


Check commits for a GPG signature and print the raw details:
git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --raw

Code Snippets

Check commits for a GPG signature

git verify-commit {{commit_hash1 optional_commit_hash2 ...}}

Check commits for a GPG signature and show details of each commit

git verify-commit {{commit_hash1 optional_commit_hash2 ...}} {{[-v|--verbose]}}

Check commits for a GPG signature and print the raw details

git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --raw

Context

tldr-pages: common/git verify-commit

Revisions (0)

No revisions yet.