git-sign

Sign git commits with GPG

扶醉桌前 提交于 2019-11-28 18:37:16
Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a ), it seems there would be a similar function for commits. git commit -S (requires git >= 1.7.9). VonC Note: Adding the -S option all the time can be cumbersome. In git 2.0 and later, you can add a config which will take care of that option for you. See commit 2af2ef3 by Nicolas Vigier (boklm) : Add the commit.gpgsign option to sign all commits If you want to GPG sign all your commits, you have to add the -S option all the time. The commit.gpgsign config option allows to sign all commits automatically.

Git sign off previous commits?

大兔子大兔子 提交于 2019-11-28 15:31:21
I was wondering how to sign( -s ) off previous commits that I have made in the past in git? To signoff the previous commit, use amend option: git commit --amend --signoff Edit: the amend does signoff only the latest commit. To signoff multiple commits, filter-branch and interpret-trailers as suggested by vonc et. al. should be used. Here is what worked for me. First, configure git to replace the token sign by Signed-off-by . This has to be done only once and is needed in the next step. git config trailer.sign.key "Signed-off-by" The command git filter-branch with the switch --msg-filter will

Git sign off previous commits?

点点圈 提交于 2019-11-27 19:50:02
问题 I was wondering how to sign( -s ) off previous commits that I have made in the past in git? 回答1: To signoff the previous commit, use amend option: git commit --amend --signoff Edit: the amend does signoff only the latest commit. To signoff multiple commits, filter-branch and interpret-trailers as suggested by vonc et. al. should be used. Here is what worked for me. First, configure git to replace the token sign by Signed-off-by . This has to be done only once and is needed in the next step.

Sign git commits with GPG

霸气de小男生 提交于 2019-11-27 11:31:25
问题 Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a ), it seems there would be a similar function for commits. 回答1: git commit -S (requires git >= 1.7.9). 回答2: Note: Adding the -S option all the time can be cumbersome. In git 2.0 and later, you can add a config which will take care of that option for you. See commit 2af2ef3 by Nicolas Vigier (boklm): Add the commit.gpgsign option to sign all commits If you want to GPG sign all your commits, you have to