Linux git 环境搭建
1. 安装git
yum instal git
中途需要y确认
2.设置git config 属性
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
3.生成ssh所需的key
ssh-keygen
4.查看生成的ssh-key
cat ~/.ssh/id_rsa.pub
5.复制ssh-key填写到对应的平台,github、码云,例:阿里云-code
" class="reference-link">
大功告成!通过git clone url 拉自己的代码
还没有评论,来说两句吧...