git使用中每次都会弹出多个提示信息:
info: detecting host provider for 'https://gitee.com/'...
倒也不是大问题,但看着不舒服
参考这个大佬的解答
https://code.fitness/post/2022/01/git-detecting-host-provider.html
If ever you see a message such as:
"info: detecting host provider for 'https://git.xxx.ch/'..."
you can tell git
to use the generic provider when accessing your repository (in my example git.xxx.ch
), so that it no longer has to probe it every time:
git config --global credential.git.xxx.ch.provider generic
然后修改如下:把git.xxx.ch改为gitee.com,这里我只针对单个项目进行测试,没有添加global参数
git config credential.gitee.com.provider generic
查看修改结果
git config --list|findstr provider
credential.gitee.com.provider=generic
//上面这行结果在修改前config里是没有的
OK了