![[Git]Git远程仓库 [Git]Git远程仓库](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
1.创建ssh key
查看主目录下面 C:\Users\Administrator\.ssh 是否存在 id_rsa 和 id_rsa.pub 文件,如果不存在需要generate new key。
$ ssh-keygen -t rsa -C "your\_email@example.com"
打开下Shell (windows gitbash), 输入上面的命令,your email 填入自己的email,然后一直回车,成功后在.ssh目录下会生成id_rsa 和 id_rsa.pub文件,id_rsa.pub中就是你的ssh key
2.登录github或者其他git托管,添加自己的ssh key
3.上传下载代码