1.git pull https://【你的github地址】
#需要填写你的github账号和密码
2.git add .
3.git commit -m 'first commit'
4.git push https://【你的github地址】
OR
git push https://(GitHub用户名,不是邮箱): 你的密码@github.com/myy/exmple.git
完美解决 fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com
git config --global --unset http.proxy
git config --global --unset https.proxy
//解决方案:cmd下命令执行 ipconfig/flushdns
//清理dns缓存
本文提供了一种解决在使用GitHub过程中遇到的fatal错误的方法,该错误表现为无法访问GitHub仓库。通过清除DNS缓存和正确配置git命令,可以有效解决这一问题。

被折叠的 条评论
为什么被折叠?



