git 报错记录
作者:互联网
fatal: unable to connect to gitee.com:
gitee.com[0: 212.64.62.174]: errno=No such file or directory
造成原因:
需要用https才能读到数据
解决方案:
执行如下命令
git config --global url."git@gitee.com:".insteadOf "https://gitee.com/"
或在git的~/.gitconfig文件中增加配置
[url "git@gitee.com:"]
insteadOf = https://gitee.com/
错误3
Please make sure you have the correct access rights
and the repository exists.
cd .; git ls-remote ssh://gitee.com/xxx/xxxxxx.git
Permission denied, user: ‘lz239’
fatal: Could not read from remote repository.
造成原因:
当前git账号无权限
解决方案
修改~/.gitconfig文件中的
[user]
name = 用户名
email = 账号邮箱
标签:git,记录,gitee,报错,user,https,fatal,com 来源: https://blog.csdn.net/hjh15827475896/article/details/121412578