From ee6ca17c5f4950e62fb483fd56b43293d0f80fc3 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Fri, 1 Sep 2017 21:55:18 +0800 Subject: [PATCH] Added changelog --- .../unreleased/36859-update-gpg-docs-with-gpg2.yml | 5 +++++ .../project/repository/gpg_signed_commits/index.md | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 changelogs/unreleased/36859-update-gpg-docs-with-gpg2.yml diff --git a/changelogs/unreleased/36859-update-gpg-docs-with-gpg2.yml b/changelogs/unreleased/36859-update-gpg-docs-with-gpg2.yml new file mode 100644 index 00000000000..e48a5704fdd --- /dev/null +++ b/changelogs/unreleased/36859-update-gpg-docs-with-gpg2.yml @@ -0,0 +1,5 @@ +--- +title: Update gpg documentation with gpg2 +merge_request: 13851 +author: M M Arif +type: other diff --git a/doc/user/project/repository/gpg_signed_commits/index.md b/doc/user/project/repository/gpg_signed_commits/index.md index ff419d714f9..859de10590a 100644 --- a/doc/user/project/repository/gpg_signed_commits/index.md +++ b/doc/user/project/repository/gpg_signed_commits/index.md @@ -30,6 +30,16 @@ to be met: ## Generating a GPG key +>**Notes:** +- If your Operating System has `gpg2` installed, replace `gpg` with `gpg2` in + the following commands. +- If Git is using `gpg` and you get errors like `secret key not available` or + `gpg: signing failed: secret key not available`, run the following command to + change to `gpg2`: + ``` + git config --global gpg.program gpg2 + ``` + If you don't already have a GPG key, the following steps will help you get started: