我如何破坏“ git credential-'store”?

问题描述

生成新的存储库并添加自述文件后,我尝试将其推送到Git,但是会发生以下错误

git credential-'store get: -c: line 0: unexpected EOF while looking for matching `''
git credential-'store get: -c: line 1: Syntax error: unexpected end of file
git credential-'store get: -c: line 0: unexpected EOF while looking for matching `''
git credential-'store get: -c: line 1: Syntax error: unexpected end of file

在全局范围内,本地凭据正确。

如何纠正此错误

我在哪里找到该文件的原因?

解决方法

通过运行git config --list --show-origin,可以找到包含配置问题的文件。

只需编辑该文件即可删除配置中的错误行,您应该会很好