LoginSignup
0
2

More than 5 years have passed since last update.

GitHubのcommitに自動で署名できる環境を作る

Posted at

GitHubのcommitに自動で署名できる環境を作る

自分用です。

手順

a. GPGToolsなどを用いて、自分のメールアドレスのGPG Keyを作成する
b. public key を exportして、GitHubに登録
c. 下記コマンドを実行してGPG KeyのIDを確認する

$ gpg --list-keys

d. 下記コマンドを実行して、自分の環境のGPGプログラムの場所を確認する

$ which gpg
  1. 下記コマンドを実行してGPG KeyのIDをgitに設定する
$ git config --global gpg.program **hogehoge**
$ git config --global user.signingkey **コピーした鍵のID**
$ git config --global commit.gpgsign true

参考

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2