[Git]Git远程仓库

  1.创建ssh key

   查看主目录下面 C:UsersAdministrator.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.上传下载代码

    

原文地址:https://www.cnblogs.com/jerry19890622/p/3462331.html