9

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.

GorvGoyl
  • 42,508
  • 29
  • 229
  • 225

2 Answers2

21

On windows 10, git user credentials are now stored with the Credential Manager.

Chengbin XIA
  • 211
  • 2
  • 2
7

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.

Mikhail Burshteyn
  • 4,762
  • 14
  • 27