IDEA用github提交Could not resolve host: github.com的解决方案

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEA用github提交Could not resolve host: github.com的解决方案相关的知识,希望对你有一定的参考价值。

参考技术A 140.82.114.4    github.com

就可以了,不行换个域名,域名查找网站可以去知乎搜一下

现在再次push就可以成功了

could not read Username for 'https://github.com': No error

用idea往github上push代码的时候,突然的不能用了。

报could not read Username for ‘https://github.com‘: No error错误。

原因不明。

解决

1、进入项目目录

2、进入 .git 目录

3、修改.git/config 文件

把github的账号密码直接写死在url中

技术分享图片

之后,问题解决。

以上是关于IDEA用github提交Could not resolve host: github.com的解决方案的主要内容,如果未能解决你的问题,请参考以下文章

解决IDEA 中git 无法自动push 提交问题 Push failed: Failed with error: Could not read from remote repository.(示例代

错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read | 使用命令行提交代码 )(代码

错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read | 使用命令行提交代码 )(代码

idea中提交项目到github及invalid authentication data 404 not found not found问题

错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )(代码

错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )(代码