我在现有存储库上调用了git pull
,并收到以下警告
$ git pull
warning: a host provider override was set but no such provider 'gitlab' was found. Falling back to auto-detection.
warning: a host provider override was set but no such provider 'gitlab' was found. Falling back to auto-detection.
Already up to date.
如何修复此警告?它来自何处?
使用的Git版本
$ git --version
git version 2.31.0.windows.1
2条答案
按热度按时间svmlkihl1#
这不是Git的问题,消息来自GCM。
https://github.com/GitCredentialManager/git-credential-manager/blob/14ff019ec854dfd8e41bd1e41e58bd8763888e58/src/shared/Core/HostProviderRegistry.cs
例如,见第109 / 110行。
tnkciper2#
我可以通过编辑Git配置并删除所有现有的和未使用的
credential
设置来解决我报告的问题之后,我为凭证助手设置了全局Git设置