Bra*_*ood 20 git caching config
后试图在Windows 7上安装的git凭据缓存我现在想放弃的想法,并从混帐删除此错误信息和设置.
git: 'credential-cache' is not a git command.
此相关问题显示如何通过安装其他软件来解决此错误,以使凭据缓存工作 - 但我希望一起删除此设置.
我该怎么做呢?
我试过了:
git config --global --remove-section credential-cache
及其变种.它也不存在于我的.git/config文件中.
Bra*_*ood 30
运行git config --global -e
允许我从全局git配置中删除有问题的配置设置.
[credential]
helper = winstore
Run Code Online (Sandbox Code Playgroud)
Nen*_*vic 14
我有同样的错误问题:
$ git push -u origin master
git: 'credential-cache' is not a git command. See 'git --help'.
Branch master set up to track remote branch master from origin.
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)
所以我决定完全摆脱凭据缓存,我在Git bash中做到了:
git config --global -e
Run Code Online (Sandbox Code Playgroud)
然后我发现了
[credential]
helper = cache
Run Code Online (Sandbox Code Playgroud)
并删除它,保存文件,然后我再次尝试结果是:
$ git push
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)
所以错误就消失了.
只是重申布拉德利洪水正确地说了什么,跑步git config --global -e
也为我工作,并在此扩展我删除的配置设置是:
[credential]
helper = winstore
Run Code Online (Sandbox Code Playgroud)
我跑了,git config --global -e
但它没有包含任何与凭证相关的部分.
但是,当我跑的时候,git config -e
我确实发现有一个[credential]
部分.
以下命令为我解决了这个问题.
git config --remove-section credential