I searched but couldn't find the path of ~/.git-credentials
in my Windows 10 machine. git documentation says that it stores username and password in plain-text in ~/.git-credentials
. I want to verify it by opening the file manually.
If not specified, credentials will be searched for from ~/. git-credentials and $XDG_CONFIG_HOME/git/credentials , and credentials will be written to ~/. git-credentials if it exists, or $XDG_CONFIG_HOME/git/credentials if it exists and the former does not. See also FILES.
if $ git config credential. helper returns manager , the password is stored in the windows credential manager, if it returns store , password is stored in a . git-credentials file in the user folder.
Application and network credentials are stored in the Windows Credentials locker. Credential Lockers store credentials in encrypted . vcrd files, located under %Systemdrive%\Users\[Username]\AppData\Local\Microsoft\[Vault/Credentials]\ . The encryption key can be found in a file named Policy.
The . git-credentials file stores password in plain text format. Each credential is stored on its own line as a URL like: https://<url_encoded_plain_text_username>:<url_encoded_plain_text_password>@github.com. The domain can be any git provider, example: @github.com, @gitlab.com, etc.
On windows 10, git user credentials are now stored with the Credential Manager.
It is located at %UserProfile%\.git-credentials
, which corresponds to C:\Users\<username>\.git-credentials
(unless you've modified the registry to move your user's profile directory elsewhere).
Generally, ~
refes to the user's home directory on Linux, and many cross-platform tools which store data in ~
on Linux (including git) store their data in the user's home directory on Windows as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With