git - PHPStorm 使用私钥签署提交

标签 git phpstorm sign

如何在 PhPStorm 中签署 git commit?

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

git commit -S -m "My message"

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

最佳答案

您最好的选择是当前错误归档中建议的解决方法 IDEA-110261 Support git commit -S (GPG commit sigining) .

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

    no-tty
    use-agent
    

关于git - PHPStorm 使用私钥签署提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35556869/

相关文章:

events - Minecraft Bukkit 标志操作

python - 从 python 中的密码制作 RSA key

git - 如何在git中查找文件的第一次提交日期

git - Gitlab运行程序克隆在traefik之后的超时(相对路径)

php - 使 PHPStorm 默认为 PHPunit 使用 PROJECT_FOLDER/phpunit.xml

javascript - 表单提交未发布由 jQuery 动态创建的字段

phpstorm - 禁用警告 'the thrown object must be an instance of the exception'

c# - 如何检查文件是否已在 C# 中签名?

svn - 新用户的 SCM 选择?

git - SourceTree 不显示同事的远程分支