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