解決GIT可視化工具Sourcetree拉取失敗問題


推薦一款GIT使用可視化工具

 

 

 下載地址:Sourcetree

官網:https://www.sourcetreeapp.com/

在導入項目后拉取會報這個錯誤的話,

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
Access denied
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures"







fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



完成時帶有錯誤,見上文。

 

 

嘗試這樣解決:

①:生成密鑰

打開git bash,輸入指令ssh-keygen -t rsa -C J0203

J0203是git賬號用戶名username

 

 

 ②:Sourcetree中  工具 --->  選項 --->  SSH客戶端配置選擇OpenSSH,並選擇剛剛生成的密鑰,點擊確定保存配置

 

 

 ③:打開密鑰生成文件夾,找到id_rsa.pub,記事本打開復制id_rsa.pub內容

 

 

 ④:將復制的內容設置到gitlab

 

 ⑤:設置完后,再次拉取就成功了。

 


免責聲明!

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



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