首页 > 解决方案 > Windows 上的 .git-credentials:每次提取时添加一行

问题描述

我将 git 配置为使用 Windows 凭据管理器

[credential]
    helper = manager

然而,每次 I 时git fetch,都会在我的 .git-credentials 中添加一个重复的行。

C:\Work> type %USERPROFILE%\.git-credentials
https://usename:MyPassword@server.example/
https://usename:MyPassword@server.example/
https://usename:MyPassword@server.example/
https://usename:MyPassword@server.example/
...

如果我删除该文件,它会重新创建并重复该行为。

这可以停止吗?

git 版本为 2.21.0(由 IT 管理)

标签: windowsgit

解决方案


推荐阅读