解决 Git Push 远程仓库错误:找不到仓库、主机密钥未缓存
解决 Git Push 远程仓库错误:找不到仓库、主机密钥未缓存
在使用 Git Push 命令时,你可能会遇到以下错误:
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v origin staging:staging\nPushing to codeup.aliyun.com:623042abba668512fb2371f8/2023/vote_vue_voice_guide.git\nThe host key is not cached for this server:\n codeup.aliyun.com (port 22)\nYou have no guarantee that the server is the computer\nyou think it is.\nThe server's rsa2 key fingerprint is:\n ssh-rsa 2048 SHA256:yEGmgQNVrc3QAvDvoBrTCF2s07KwmmQ+AbWi9vSt/fE\nIf you trust this host, enter "y" to add the key to\n\n\n完成时带有错误,见上文。\nPuTTY's cache and carry on connecting.\nIf you want to carry on connecting just once, without\nadding the key to the cache, enter "n".\nIf you do not trust this host, press Return to abandon the\nconnection.\nStore key in cache? (y/n, Return cancels connection, i for more info) fatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.
根据给出的输出信息,有以下几个问题:
- 它提到找不到远程仓库,请确保你有正确的访问权限并且该仓库存在。请确保远程仓库的URL正确,并且你有正确的权限访问仓库。
- 它还提到了一个未缓存的主机密钥警告。这是SSH的安全特性,用于验证你是否信任连接的主机。你可以选择输入"y"将主机密钥添加到缓存中,或者输入"n"跳过此次连接。如果你信任该主机,请输入"y"。
- 另外,输出中没有给出具体的错误信息,所以无法判断是否有其他问题。请确保你的网络连接正常,并且检查你的Git配置是否正确。
如果你还有其他问题,请提供更多的错误信息以便我们能够更好地帮助你解决问题。
原文地址: https://www.cveoy.top/t/topic/pKHk 著作权归作者所有。请勿转载和采集!