git with GPG sign

Mar 25, 2019 • 预计阅读时间 1 分钟

Setup GPG pub key for git server

  1. Install GPG Suite or gpgosx on macOS
  2. Create a GPG key
  3. Setup GPG pub key for github or gitlab etc.

Setup GPG key for git client

  • List all GPG key
gpg -K
  • Setup signingkey for git
git config user.signingkey your-key
  • Enable gpgsign for git commit
git config commit.gpgsign true

using gpg2

git config --global gpg.program $(which gpg2)
Git

在 ObjC 项目里使用 Swift 静态库

GNU auto tools

comments powered by Disqus