【问题标题】:Gihub error occuring when i am push or pull my code via vscode [duplicate]当我通过 vscode 推送或拉取代码时发生 Github 错误 [重复]
【发布时间】:2022-01-07 17:28:07
【问题描述】:

当我在 github 中推送或拉取我的代码时发生错误,并且错误说明了这一点 - fatal: unable to access 'https://github.com/<your-github-account>/<git-repo-name>/': Could not resolve host: github.com 我们该如何解决这个错误??

【问题讨论】:

    标签: github push pull


    【解决方案1】:

    答案就在下图中:

    我所做的只是再次登录,这有助于我在暂停的浏览器中恢复我的帐户,主要是从 GitHub 使用该浏览器打开你的 GitHub 的地方!

    重要提示:确保您再次登录的帐户与您添加为 git --config global user.email 的帐户相同,否则浏览器将不允许访问您的 GitHub,因为手动登录是必填!

    【讨论】:

    • 不,这不是答案。您的问题只是一个简单的网络问题。
    猜你喜欢
    • 2016-11-04
    • 2020-12-26
    • 2022-06-19
    • 1970-01-01
    • 2016-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-10
    相关资源
    最近更新 更多