Skip to content

Commit 7b67e8f

Browse files
Fixes verbiage that described how credentials are being cached (#25243)
Co-authored-by: Isaac Brown <[email protected]>
1 parent 56bb8ac commit 7b67e8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/reusables/git/cache-on-repository-path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1. To configure Git to cache credentials for each local directory where you clone a repository, enter the following command.
1+
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.
22

33
```shell{:copy}
44
git config --global credential.https://github.com.useHttpPath true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
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.
22

3-
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.
3+
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.

0 commit comments

Comments
 (0)