Skip to content

Commit 3183fdb

Browse files
authored
Add PAT as possible option to credential.gitHubAuthModes (#496)
* add pat as possible option to credential.gitHubAuthModes * add pat as possible option to GCM_GITHUB_AUTHMODES * fix formatting
1 parent d872294 commit 3183fdb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/configuration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ _(unset)_|Automatically detect modes
209209
`oauth`|Expands to: `browser, device`
210210
`browser`|OAuth authentication via a web browser _(requires a GUI)_
211211
`device`|OAuth authentication with a device code
212-
`basic`|Basic/PAT-based authentication
212+
`basic`|Basic authentication using username and password
213+
`pat`|Personal Access Token (pat)-based authentication
213214

214215
#### Example
215216

@@ -394,7 +395,7 @@ Value|Git Behavior
394395
On Windows using GitHub, for a user whose login is `alice`, and with `credential.useHttpPath` set to `false` (or not set), the following remote URLs will use the same credentials:
395396

396397
```text
397-
Credential: "git:https://github.com" (user = alice)
398+
Credential: "git:https://github.com" (user = alice)
398399
399400
https://github.com/foo/bar
400401
https://github.com/contoso/widgets

docs/environment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ _(unset)_|Automatically detect modes
356356
`oauth`|Expands to: `browser, device`
357357
`browser`|OAuth authentication via a web browser _(requires a GUI)_
358358
`device`|OAuth authentication with a device code
359-
`basic`|Basic/PAT-based authentication
359+
`basic`|Basic authentication using username and password
360+
`pat`|Personal Access Token (pat)-based authentication
360361

361362
##### Windows
362363

0 commit comments

Comments
 (0)