本地?(Local)
1、使用命令生成公鑰(pub文件)?
1. $ ssh-keygen -t rsa -C "xxxxxxx@email.com" -f "github_id_rsa"
2. $ ssh-keygen -t rsa -C "xxxxxxx@email.com" -f "gitee_id_rsa"
2、創(chuàng)建config文件,并配置
# gitee
Host gitee.com
HostName gitee.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitee_id_rsa
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github_id_rsa
遠(yuǎn)程(Remote)
1、gitee配置公鑰
2、github配置公鑰
??
驗(yàn)證
文章來源:http://www.zghlxwxcb.cn/news/detail-655742.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-655742.html
到了這里,關(guān)于【Git】本地搭建Gitee、Github環(huán)境的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!