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.
Asked
Active
Viewed 2.1k times
9

GorvGoyl
- 42,508
- 29
- 229
- 225
-
1It's in your user `HOME` directory. `~` is Unix HOME – clamentjohn Sep 07 '18 at 06:42
2 Answers
21
On windows 10, git user credentials are now stored with the Credential Manager.

Chengbin XIA
- 211
- 2
- 2
-
-
@Royi, try the answer here: https://stackoverflow.com/a/37185202/277504. (Remove `helper = manager` from the git system-level config.) – Arthur Hebert-Ryan Feb 12 '23 at 23:07
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
-
Or, if you modified the registry to change your user directory, `%UserProfile%\.git-credentials` – iBug Sep 07 '18 at 06:42
-