sh 签署git commits.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 签署git commits.sh相关的知识,希望对你有一定的参考价值。

# Signing commits
git commit -s # sign-off
git commit -S # sign with key

# Merge and sign
git merge --no-commit
git commit -s -S

# Show the signature
git show HEAD --show-signature

# Sign all previous commits
git filter-branch --commit-filter 'git commit-tree -S "$@";' -- --all
# Or
git filter-branch -f --commit-filter 'git commit-tree -S "$@"' HEAD

以上是关于sh 签署git commits.sh的主要内容,如果未能解决你的问题,请参考以下文章