From 7b67e8f2b295ac195590b1fc886b6dd075881b71 Mon Sep 17 00:00:00 2001 From: Jesse Houwing Date: Thu, 27 Apr 2023 04:31:51 -0700 Subject: [PATCH] Fixes verbiage that described how credentials are being cached (#25243) Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> --- data/reusables/git/cache-on-repository-path.md | 2 +- data/reusables/git/provide-credentials.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/reusables/git/cache-on-repository-path.md b/data/reusables/git/cache-on-repository-path.md index 4bbab89764..98d658eec3 100644 --- a/data/reusables/git/cache-on-repository-path.md +++ b/data/reusables/git/cache-on-repository-path.md @@ -1,4 +1,4 @@ -1. To configure Git to cache credentials for each local directory where you clone a repository, enter the following command. +1. To configure Git to cache credentials for the full remote URL of each repository you access on {% data variables.product.prodname_dotcom %}, enter the following command. ```shell{:copy} git config --global credential.https://github.com.useHttpPath true diff --git a/data/reusables/git/provide-credentials.md b/data/reusables/git/provide-credentials.md index 613014fb92..70c5a180ec 100644 --- a/data/reusables/git/provide-credentials.md +++ b/data/reusables/git/provide-credentials.md @@ -1,3 +1,3 @@ 1. The first time that you use Git to clone a repository or access data in a repository that you've already cloned, Git will request credentials. Provide the {% data variables.product.pat_generic %} for the account with access to the repository. - Git will cache the {% data variables.product.pat_generic %} for the directory you're in, and you'll be able to access and write repository data on {% data variables.location.product_location %} using the correct account. + Git will cache the {% data variables.product.pat_generic %} based on the full remote URL of the repository, and you'll be able to access and write repository data on {% data variables.location.product_location %} using the correct account.