GitHubのGPG Keyを設定する

環境

  • macOS High Sierra

GPG Suiteインストール

GPG Key作成

公開鍵をコピー

GitHubへ登録

鍵ID取得

$ gpg --list-secret-keys --keyid-format LONG
/Users/kenji/.gnupg/pubring.kbx
-------------------------------
sec rsa4096/8439160283A46D40 2018-03-17 [SC]
5E530DACFFCB64BAEFD9ED3F8439160283A46D40
uid [ 究極 ] Kenji Abe (GitHub)
ssb rsa4096/BD5C8DB05E37A047 2018-03-17 [E]

Git設定

$ git config --global user.signingkey 1234123412341234
$ git config --global commit.gpgsign true
$ git config --global gpg.program gpg2

Gitコミット

おわり

インポートとエクスポート

参考

--

--

--

Programmer / Gamer / Google Developers Expert for Android, Kotlin / @STAR_ZERO

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kenji Abe

Kenji Abe

Programmer / Gamer / Google Developers Expert for Android, Kotlin / @STAR_ZERO

More from Medium

ATMega328P Programming using Arduino Uno : Project code -BRE 25.

The top 9 app concepts to release in 2022

DrChrono EHR and API For Developers

DrChrono EHR Software

Form field guide for flutter