PHPStorm使用私钥来签署提交

Pif*_*fon 4 git sign phpstorm

如何在PhPStorm中签署git commit?

有效的命令行(选项'-S'):

git commit -S -m "My message"
Run Code Online (Sandbox Code Playgroud)

但是找不到使用PHPStorm实现它的方法.

Eug*_*ene 9

您最好的选择是当前错误提交IDEA-110261支持git commit -S(GPG提交签名)中建议的解决方法.

  1. 在终端中,将项目设置为签名: git config commit.gpgsign true
  2. 在配置文件中~/.gnupg/gpg.conf添加:

    no-tty
    use-agent
    
    Run Code Online (Sandbox Code Playgroud)