Forrest logo
back to the git tool

git-verify-commit:tldr:4cdbb

git-verify-commit: Check commits for a GPG signature and show details of each commit.
$ git verify-commit ${commit_hash1 optional_commit_hash2 ---} --verbose
try on your machine

The command "git verify-commit" is used to verify the cryptographic integrity and authenticity of one or more commits in a Git repository. It ensures that the specified commits have not been tampered with, and their associated GPG signatures are valid.

The command takes one or more commit hashes as arguments. The commit hashes uniquely identify the commits in the Git history. Optionally, you can provide one or more commit hashes separated by spaces to verify multiple commits at once.

The "--verbose" flag is used to provide detailed output during the verification process. It will display additional information about the status of each commit being verified, including whether the commit is signed and whether the signature is valid.

In summary, this command verifies the integrity and authenticity of the specified commits in a Git repository, providing a detailed report of the verification process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool