使用TortoiseGit ssh克隆gitee倉庫報以下錯:
/usr/bin/bash: git@gitee.com: No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (234 ms @ 2023/8/31 22:19:24)
解決方法
第一步,檢查SSH公鑰是否配置成功,配置方法參考官方SSH 公鑰設(shè)置教程
第二步,使用Git Bash(使用Windows PowerShell或者CMD會出現(xiàn)亂碼)測試SSH配置成功
ssh -T git@gitee.com
成功會有以下提示:
Hi USERNAME! You've successfully authenticated, but GITEE.COM does not provide shell access.
第三步,更換SSH Client
使用TortoiseGit克隆時,如果到這一步還克隆失敗,更換SSH Client.進(jìn)行嘗試文章來源:http://www.zghlxwxcb.cn/news/detail-769195.html
路徑為C:\Program Files\Git\usr\bin\ssh.exe
這里需要根據(jù)電腦git的安裝目錄修改路徑。文章來源地址http://www.zghlxwxcb.cn/news/detail-769195.html
到了這里,關(guān)于Gitee Clone:No such file or directory問題解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!