首页 > 解决方案 > 如何破坏“git credential-'store”?

问题描述

生成新的 Repository 并添加 README 后,我尝试将其推送到 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

虽然全局和本地凭据是正确的。

我该如何纠正这个错误?

我在哪里可以找到导致它的文件?

标签: gitcredentials

解决方案


您可以通过运行找到包含有问题的 config 位的文件git config --list --show-origin

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


推荐阅读