git使用採坑-The project you were looking for could not be found 解決方式
問題描述:使用git clone 項目,出現這個問題:The project you were looking for could not be found.
原因:gi t自動保存git密碼的功能(自己在單位電腦用了碼雲和github做了倉庫,估計起了衝突)
解決方案一:
git clone http://@git.coding.net/name/p... ---- 失敗
添加遠程地址的時候帶上用戶名及密碼即可解決,格式如下:
git clone http://yourname:[email protected]/name/project.git ---- 成功
解決方案二:
在自己的項目路徑上加上自己的用戶名,
例如:
Git clone http://git.coding.net/name/pr... ----失敗
Git clone http://git賬戶名@git.coding.n... 然後再彈出的密碼輸入指令後面輸入密碼 ---- 成功
解決方案三:
清除本地git賬戶,重新輸入用戶名密碼(最優)
git config --system --unset credential.helper
之後再進行git操作時,彈出用戶名密碼窗口,輸入即可
有問題,請留言!