Linux git 环境搭建

1. 安装git

yum instal git

中途需要y确认

2.设置git config 属性

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

3.生成ssh所需的key

ssh-keygen -t rsa -b 4096 -C“[email protected]

4.查看生成的ssh-key

cat  ~/.ssh/id_rsa.pub

5.复制ssh-key填写到对应的平台,github、码云,例:阿里云-code

大功告成!通过git clone url 拉自己的代码

猜你喜欢

转载自blog.csdn.net/qq_38423105/article/details/84873334