git clone報錯:remote: The project you were looking for could not be found.

$  git clone http://xxx
Cloning into 'xxx'...
remote: The project you were looking for could not be found.
fatal: repository 'http://xxx' not found

  原因:

1.git有記憶功能,記錄了之前的認證信息

2.git記錄的賬號沒有clone此項目的權限

解決方法總結如下:

1. 修改控制面板信任憑據

2. 卸載重裝git credentials manager (親測有效,推薦)

$ git credential-manager uninstall
 
$ git credential-manager install

3. clone時帶上用戶名和密碼

git clone http://username@xxxx/xxx/xxx.git

4. 以上方法都無效時,在瀏覽器中輸入clone的地址,若不能訪問,則說明無權限,不能clone

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章