error: The requested URL returned error: 403 Forbidden while accessing https://github.com/blah/blah

轉自:點擊打開鏈接

如紅色部分所示,clone時候就添加上用戶名,隨後會提示你輸入密碼,就OK了

git clone https://[email protected]/blah/blahblah.git


如果你想後面的操作也不再輸入密碼了,你可以在地址中加上密碼

git clone https://username:[email protected]/blah/blahblah.git


如果你已經clone了,也可以通過重設地址的方式
git remote set-url origin  https://username:[email protected]/blah/blahblah.git
發佈了19 篇原創文章 · 獲贊 9 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章