解決報錯:error: The requested URL returned error: 401 Unauthorized while accessing


問題
報錯:error: The requested URL returned error: 401 Unauthorized while accessing
git版本: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秘鑰


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM