From 7bf888e4740311d542724fea65288c60c3f9286e Mon Sep 17 00:00:00 2001 From: Jacques Lalancette Date: Sun, 31 Oct 2021 22:57:41 +0900 Subject: [PATCH 1/3] Make the last step a step in Mirroring a repo sect To make it more clear that the final push is required, it might be better to number that step as well. Combined with the extra? line break between the terminal commands in step 3 and "As with a bare clone..." it was confusing at first glance. --- .../duplicating-a-repository.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md b/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md index efe3ce49c6..fe81a4601c 100644 --- a/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md +++ b/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md @@ -87,13 +87,13 @@ If you want to mirror a repository in another location, including getting update $ cd repository-to-mirror $ git remote set-url --push origin https://{% data variables.command_line.codeblock %}/exampleuser/mirrored ``` +As with a bare clone, a mirrored clone includes all remote branches and tags, but all local references will be overwritten each time you fetch, so it will always be the same as the original repository. Setting the URL for pushes simplifies pushing to your mirror. -As with a bare clone, a mirrored clone includes all remote branches and tags, but all local references will be overwritten each time you fetch, so it will always be the same as the original repository. Setting the URL for pushes simplifies pushing to your mirror. To update your mirror, fetch updates and push. - -```shell -$ git fetch -p origin -$ git push --mirror -``` +4. To update your mirror, fetch updates and push. + ```shell + $ git fetch -p origin + $ git push --mirror + ``` {% ifversion fpt or ghec %} ## Further reading From 8d9e99243e2c97756c1bdb4e4a750e4256b6dc6e Mon Sep 17 00:00:00 2001 From: Kalvin Pearce Date: Wed, 3 Nov 2021 19:12:45 +1000 Subject: [PATCH 2/3] Add example to CLI section of Add a new SSH key --- .../adding-a-new-ssh-key-to-your-github-account.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md index b06c040b70..983319d694 100644 --- a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md +++ b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md @@ -147,6 +147,12 @@ To include a title for the new key, use the `-t` or `--title` flag. gh ssh-key add key-file --title "personal laptop" ``` +For example if you followed the previous section for [Generating a new SSH key](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) you would write + +```shell +gh ssh-key add ~/.ssh/id_ed25519.pub +``` + {% endcli %} {% ifversion fpt or ghec %} From 37cb4f3a66234e85c40dd67cd9754fc5db7a4f73 Mon Sep 17 00:00:00 2001 From: Laura Coursen Date: Fri, 12 Nov 2021 14:49:24 -0600 Subject: [PATCH 3/3] Add :nail_care: --- .../adding-a-new-ssh-key-to-your-github-account.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md index 983319d694..8ab34ec3dd 100644 --- a/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md +++ b/content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md @@ -147,7 +147,7 @@ To include a title for the new key, use the `-t` or `--title` flag. gh ssh-key add key-file --title "personal laptop" ``` -For example if you followed the previous section for [Generating a new SSH key](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) you would write +If you generated your SSH key by following the instructions in "[Generating a new SSH key](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)", you can add the key to your account with this command. ```shell gh ssh-key add ~/.ssh/id_ed25519.pub