Git基础之配置ssh环境

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33861603/article/details/85972189

正文: 先安装好git

简单攻略:

1.配置用户

打开git bash命令行,输入git config --global user.name "xxx"(配置账户)

输入 git config --global user.email "xxx"(配置邮箱)

2.生成公钥

输入 ssh-keygen -t rsa -C "邮箱" 生成id_rsa和id_rsa.pub文件。

3.将id_rsa.pub中公钥内容上传到github的公钥栏。

4.测试下

git clone [email protected]:xxx/test.git,然后出现test库

猜你喜欢

转载自blog.csdn.net/qq_33861603/article/details/85972189