You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gitkraken-client/commit-signing-with-gpg.md
+64-13Lines changed: 64 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,23 @@
1
1
---
2
2
3
-
title: Commit Signing with gpg
4
-
description: Learn how to create GPG keys and sign your commits in GitKraken Client
3
+
title: Commit Signing
4
+
description: Learn how to sign your commits in GitKraken Client
5
5
taxonomy:
6
6
category: gitkraken-client
7
7
8
8
---
9
9
10
10
##What is Commit Signing?
11
11
12
-
In Git, you may commit using any name and email address. However, Git supports signing commits and annotated tags using a GPG key pair.
12
+
In Git, you may commit using any name and email address. However, Git supports signing commits and annotated tags using a GPG or SSH key pair.
13
13
14
14
By signing a commit, other users with your public key can verify the commit was created by the owner of that key. Users can also share their public key with their remote hosting service, such as GitHub, so that commits appear as verified on their website.
15
15
16
-
###Commit Signing Requirements
16
+
***
17
+
18
+
###Commit Signing with GPG
19
+
20
+
####Requirements
17
21
18
22
Before you start signing your commits, you will first need to install and configure GPG. Our recommendations to get GPG installed quickly are below.
19
23
@@ -43,8 +47,7 @@ Once you have installed GPG to your machine, you can verify it is installed and
Once you have GPG installed on your machine, you will need to configure GitKraken to use GPG. Launch GitKraken Client and navigate to Preferences → GPG Preferences.
61
64
@@ -77,7 +80,7 @@ Once you have GPG installed on your machine, you will need to configure GitKrake
77
80
78
81
+**Generate new GPG Key:** GitKraken Client will generate a new GPG key for you, see [Generating a GPG Key In GitKraken](/git-workflows-and-extensions/commit-signing-with-gpg/#generating-a-gpg-key-in-gitkraken).
79
82
80
-
###Verifying a Local Commit is Signed
83
+
####Verifying a Local Commit is Signed
81
84
82
85
You can verify a commit has been signed by selecting a commit and viewing the commit panel. An icon will appear to the left of the commit SHA on signed commits only.
83
86
@@ -96,18 +99,17 @@ Below is a list of possible signature codes and what they mean:
96
99
+`BADSIG` -- The signature with the keyid has not been verified.
97
100
+`ERRSIG` -- It was not possible to check the signature. This may be caused by a missing public key or an unsupported algorithm.
98
101
99
-
100
-
###Uploading Your GPG Key to a Remote Hosting Service
102
+
####Uploading Your GPG Key to a Remote Hosting Service
101
103
102
104
To upload your GPG public key to your remote hosting service, we recommend viewing the documentation for the respective hosting service:
* <emclass='context-menu'><iclass="fab fa-bitbucket"aria-hidden="true"></i></em> Only Bitbucket Server[Bitbucket](https://confluence.atlassian.com/bitbucketserver/using-gpg-keys-913477014.html#UsingGPGkeys-AddaGPGkeytoBitbucketServer)
107
109
108
110
To copy your GPG public key in GitKraken Client, navigate to Preferences → GPG Preferences and below your Signing Key, select `Copy GPG Public Key`.
109
111
110
-
###Editing Your GPG Key
112
+
####Editing Your GPG Key
111
113
112
114
Editing your gpg key is helpful when you wish to add another email address to a key or renew an expired key. To edit a GPG key, navigate to your terminal and enter `gpg --list-secret-keys --keyid-format LONG`. This command will output a list of your GPG keys, take note of the ID of the key you wish to edit.
113
115
@@ -128,11 +130,60 @@ For a complete list you can review [GNU’s documentation](https://www.gnupg.org
128
130
129
131
Make sure to upload the updated key on your hosting service once you have saved. See [Uploading Your GPG Key to a Remote Hosting Service](/git-workflows-and-extensions/commit-signing-with-gpg/#uploading-your-gpg-key-to-a-remote-hosting-service).
130
132
131
-
###Deleting your GPG Key
133
+
####Deleting your GPG Key
132
134
133
135
You can delete your key via terminal with the command `gpg --delete-secret-keys` simply append your username or key ID.
0 commit comments