如下配置,即可讓本電腦直接推送gitee,而無(wú)需輸入碼云的密碼
下載git
配置用戶名:git config --global user.name “zhangsan” //以后的提交人就是這個(gè)名字
配置郵箱:git config --global user.email “zhangsan@qq.com” //注冊(cè)賬號(hào)時(shí)的郵箱
右鍵運(yùn)行g(shù)it bash here
創(chuàng)建SSH公鑰:ssh-keygen -t rsa -C “123456@qq.com”
查看公鑰內(nèi)容:cat ~/.ssh/id_rsa.pub
打開(kāi)碼云,設(shè)置-ssh公鑰,直接把公鑰內(nèi)容輸入進(jìn)去,標(biāo)題隨便寫(xiě)
運(yùn)行:ssh -T git@gitee.com 讓本電腦與gitee建立連接,以后無(wú)需密碼登錄