1.安裝常用軟件
Git
SourceTree
下載exe程序安裝即可
2.生成ssh
ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com"
郵箱改成對應(yīng)的自己郵箱
一直回車下一步,到選擇(y/n)輸入y回車即可。
生成的公鑰和私鑰都在 C:\Users\Administrator.ssh\ 下面
打開公鑰內(nèi)容,復(fù)制好,配置在對應(yīng)的git服務(wù)器的ssh下,此處以gitee為例:
1-ssh-1.jpg
1-ssh-2.jpg
1-ssh-3.jpg
添加完點擊確定即可。
3.配置sourceTree
點擊:工具-》選項
2-st-1.png
選擇好公鑰,注意選擇的是openssh
2-st-2.jpg
后點擊確定則配置好了sourcetree的ssh