美文网首页
git ssh上传代码

git ssh上传代码

作者: Yao请输入昵称 | 来源:发表于2019-06-19 10:36 被阅读0次

1.安装git

2.配置git用户名和邮箱

git config --global user.name"xxxx"

git config--global user.email "xxxx@xxx.com"

3.生成密钥对

ssh-keygen -t rsa -C "xxxx@xxxxx.com"

4.获取密钥

C:\Users\Administrator\.ssh 目录下 id_rsa和id_rsa.pub 两个文件

打开该文件

5.点击头像,进入settings,添加密钥保存即可

相关文章

网友评论

      本文标题:git ssh上传代码

      本文链接:https://www.haomeiwen.com/subject/yelhqctx.html