diff --git a/signed-commits.md b/signed-commits.md new file mode 100644 index 0000000..6aa03f0 --- /dev/null +++ b/signed-commits.md @@ -0,0 +1,23 @@ +Steps for enabling GPG signed commits in Android Studio: + +* Find the ID of your signing key + * Run `gpg -K you@example.com` + * Look at the line starting with `sec` + * The hex digits after the slash are the key ID, e.g. `ABCD0123` +* Add the key ID to your global `.gitconfig`: + ``` + [user] + name = you + email = you@example.com + signingkey = ABCD0123 + ``` +* Add the following lines to your `.gnupg/gpg.conf`: + ``` + use-agent + no-tty + ``` +* Enable signed commits in the project's `.git/config`: + ``` + [commit] + gpgsign = true + ```