Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm use private key to sign commit

Tags:

git

phpstorm

sign

How do I sign git commit in PhPStorm?

command-line which works (the option '-S'):

git commit -S -m "My message"

But cannot find a way to achieve it using PHPStorm.

like image 785
Pifon Avatar asked Dec 25 '22 08:12

Pifon


1 Answers

Your best bet is the workaround suggested in the current bug filing IDEA-110261 Support git commit -S (GPG commit sigining).

  1. In your terminal, set the project to to sign: git config commit.gpgsign true
  2. In the config file ~/.gnupg/gpg.conf add:

    no-tty
    use-agent
    
like image 157
Eugene Avatar answered Jan 14 '23 02:01

Eugene