1.安装git后,打开gitbash,配置用户及邮箱
配置用户
输入git config --global user.name "test"
配置邮箱
$ git config --global user.email "test@qq.com"
2.生成密钥
ssh-keygen -t rsa
3.复制id_rsa.pub中的公钥添加到github管理平台
4.添加成功后,即可在本地拉远程仓库代码。
1.安装git后,打开gitbash,配置用户及邮箱
配置用户
输入git config --global user.name "test"
配置邮箱
$ git config --global user.email "test@qq.com"
2.生成密钥
ssh-keygen -t rsa
3.复制id_rsa.pub中的公钥添加到github管理平台
4.添加成功后,即可在本地拉远程仓库代码。