Windows 10中〜/.git-credentials文件的位置? [英] Location of ~/.git-credentials file in Windows 10?
问题描述
我搜索了Windows 10计算机中的〜/.git-credentials
路径,但找不到. git文档说,它以纯文本形式存储用户名和密码.>〜/.git-credentials
.我想通过手动打开文件来进行验证.
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.
推荐答案
它位于%UserProfile%\.git-credentials
,与 C:\ Users \<username> \.git-credentials
(除非您已修改注册表以将用户的个人资料目录移到其他位置).
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).
通常,〜
引用Linux上用户的主目录,许多跨平台工具将数据存储在Linux上的〜
中(包括git),在Windows上也是用户的主目录.
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.
这篇关于Windows 10中〜/.git-credentials文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!