You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select the type of credential store to use on supported platforms.
221
221
222
-
Default value is unset.
222
+
Default value on Windows is `wincredman`, on macOS is `keychain`, and is unset on Linux.
223
223
224
-
**Note:**This setting is only supported on Linux platforms. Setting this value on Windows and macOS has no effect. See more information about configuring secret stores on Linux [here](linuxcredstores.md).
224
+
**Note:** See more information about configuring secret stores [here](credstores.md).
225
225
226
-
Value|Credential Store
227
-
-|-
228
-
_(unset)_|(error)
229
-
`secretservice`|[freedesktop.org Secret Service API](https://specifications.freedesktop.org/secret-service/) via [libsecret](https://wiki.gnome.org/Projects/Libsecret) (requires a graphical interface to unlock secret collections).
230
-
`gpg`|Use GPG to store encrypted files that are compatible with the [`pass` utility](https://www.passwordstore.org/) (requires GPG and `pass` to initialize the store).
`plaintext`|Store credentials in plaintext files (**UNSECURE**). Customize the plaintext store location with [`credential.plaintextStorePath`](#credentialplaintextstorepath).
`wincredman`|Windows Credential Manager (not available over SSH).|Windows
230
+
`dpapi`|DPAPI protected files. Customize the DPAPI store location with [credential.dpapiStorePath](#credentialdpapistorepath)|Windows
231
+
`keychain`|macOS Keychain.|macOS
232
+
`secretservice`|[freedesktop.org Secret Service API](https://specifications.freedesktop.org/secret-service/) via [libsecret](https://wiki.gnome.org/Projects/Libsecret) (requires a graphical interface to unlock secret collections).|Linux
233
+
`gpg`|Use GPG to store encrypted files that are compatible with the [`pass` utility](https://www.passwordstore.org/) (requires GPG and `pass` to initialize the store).|macOS, Linux
234
+
`cache`|Git's built-in [credential cache](https://git-scm.com/docs/git-credential-cache).|Windows, macOS, Linux
235
+
`plaintext`|Store credentials in plaintext files (**UNSECURE**). Customize the plaintext store location with [`credential.plaintextStorePath`](#credentialplaintextstorepath).|Windows, macOS, Linux
Specify a custom directory to store plaintext credential files in when [`credential.credentialStore`](#credentialcredentialstore) is set to `plaintext`.
269
272
270
-
Defaults to the value `~/.gcm/store`.
273
+
Defaults to the value `~/.gcm/store` or `%USERPROFILE%\.gcm\store`.
Specify a custom directory to store DPAPI protected credential files in when [`credential.credentialStore`](#credentialcredentialstore) is set to `dpapi`.
288
+
289
+
Defaults to the value `%USERPROFILE%\.gcm\dpapi_store`.
This credential store uses the Windows Credential APIs (`wincred.h`) to store
44
+
data securely in the Windows Credential Manager (also known as the Windows
45
+
Credential Vault in earlier versions of Windows).
46
+
47
+
You can [access and manage data in the credential manager](https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0)
48
+
from the control panel, or via the [`cmdkey` command-line tool](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey).
49
+
50
+
When connecting to a Windows machine over a network session (such as SSH), GCM
51
+
is unable to persist credentials to the Windows Credential Manager due to
52
+
limitations in Windows. Connecting by Remote Desktop doesn't suffer from this
This helps you reduce the number of times you have to authenticate but
102
187
doesn't require storing credentials on persistent storage. It's good for
103
-
scenarios like [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview) or [AWS CloudShell](https://aws.amazon.com/cloudshell/), where you
104
-
don't want to leave credentials on disk but also don't want to re-authenticate
105
-
on every Git operation.
188
+
scenarios like [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview)
189
+
or [AWS CloudShell](https://aws.amazon.com/cloudshell/), where you don't want to
190
+
leave credentials on disk but also don't want to re-authenticate on every Git
191
+
operation.
106
192
107
193
By default, `git credential-cache` stores your credentials for 900 seconds.
0 commit comments