← 返回命令列表

Linux command

git-verify-commit 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Verify signed commit

git verify-commit [commit]

Verify multiple commits

git verify-commit [commit1] [commit2]

Show raw signature

git verify-commit --raw [commit]

Verbose output

git verify-commit -v [commit]

说明

git verify-commit checks GPG signatures of commits. It verifies that commits were signed with valid GPG keys, confirming the authenticity and integrity of the commit author. This command is useful in workflows that require signed commits for security or compliance purposes.

参数

-v, --verbose
Print commit contents.
--raw
Print raw signature.

FAQ

What is the git-verify-commit command used for?

git verify-commit checks GPG signatures of commits. It verifies that commits were signed with valid GPG keys, confirming the authenticity and integrity of the commit author. This command is useful in workflows that require signed commits for security or compliance purposes.

How do I run a basic git-verify-commit example?

Run `git verify-commit [commit]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in git-verify-commit?

Print commit contents.