gpt4 book ai didi

git - 无法解析主机名 git : nodename nor servname provided, 或未知

转载 作者:太空狗 更新时间:2023-10-29 12:54:48 25 4
gpt4 key购买 nike

我尝试执行 git pull --rebase 但我收到以下错误:

ssh: Could not resolve hostname git: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我尝试执行 git remote -v 并正确列出了来源。

我该如何修复这个错误?

最佳答案

我最近通过从我的 fork 上的远程地址中删除 ssh 解决了这个问题:

origin  ssh://git@ghe.company.net:yunus/client.git (fetch)
origin ssh://git@ghe.company.net:yunus/client.git (push)
...

更新为:

origin  git@ghe.company.net:yunus/client.git (fetch)
origin git@ghe.company.net:yunus/client.git (push)
...

关于git - 无法解析主机名 git : nodename nor servname provided, 或未知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20643002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com