10.配置git及github(Linux)

git config --global color.ui true
git config --global user.name "huoxiaoqiang"
git config --global user.email "237306165@qq.com"
#生成密钥
ssh-keygen -t rsa -b 4096 -C "237306165@qq.com" 
#读取密钥,然后复制粘贴到github
cat ~/.ssh/id_rsa.pub
#github测试成功结果
ssh -T git@github.com     
结果:Hi huoxiaoqiang! You've successfully authenticated, but GitHub does not provide shell access.
#gitee码云测试成功结果
ssh -T git@gitee.com
结果:Hi huoxiaoqiang! You've successfully authenticated, but GITEE.COM does not provide shell access.  

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/basic/git/3239.html

发表评论

登录后才能评论