推薦一款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

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

