akwizgran created page: signed commits

akwizgran
2016-01-13 14:18:14 +00:00
parent 1b12ddf672
commit a479e342b3

23
signed-commits.md Normal file

@@ -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
```