linux 下解决git clone报错

it2022-05-08  8

解决报错:error: The requested URL returned error: 401 Unauthorized while accessing

 

问题报错:error: The requested URL returned error: 401 Unauthorized while accessinggit版本:1.7.1

解决方法一:指定用户git clone https://github.com/org/project.git

换成git clone https://username@github.com/org/project.git或者git clone https://username:password@github.com/org/project.git

在push或者pull出出现的话,则需要更改远程地址git remote set-url origin https://username@github.com/org/project.git

解决方法二:去除验证git config –global http.sslverify false

解决方法三:(推荐)升级git 版本≥1.7.10

解决方法四:添加ssh秘钥

转载于:https://www.cnblogs.com/yiyi17/p/9768179.html

相关资源:垃圾分类数据集及代码

最新回复(0)