文章源自随机的未知-https://sjdwz.com/11104.html
创建ssh key
点击Settings文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
个人设置左边,点击SSH and GPG keys文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
点击new ssh key文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
然后根据自己的喜好,在title起个名字。文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
用 ssh-keygen -t rsa -C "youremail@example.com"(后面是你自己的邮箱)文章源自随机的未知-https://sjdwz.com/11104.html
然后在命令行输入就行了文章源自随机的未知-https://sjdwz.com/11104.html
回车键就行了,使用y覆盖就可以文章源自随机的未知-https://sjdwz.com/11104.html
默认是在users文件夹下文章源自随机的未知-https://sjdwz.com/11104.html
有一个隐藏的ssh文件夹文章源自随机的未知-https://sjdwz.com/11104.html
然后 用 cd .ssh/ (有个点)切换到ssh所在路径文章源自随机的未知-https://sjdwz.com/11104.html
用cat id_rsa.pub (有个点)文章源自随机的未知-https://sjdwz.com/11104.html
把ssh key拷贝一下,黏贴到里面就可以了。文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
点击ADD SSH key就好了文章源自随机的未知-https://sjdwz.com/11104.html
用 ssh -T git@github.com 来看是否与本地仓库联通文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html
创建远程仓库
文章源自随机的未知-https://sjdwz.com/11104.html
New repository文章源自随机的未知-https://sjdwz.com/11104.html
起个名就可以了文章源自随机的未知-https://sjdwz.com/11104.html
然后就有命令提示(注意先cd到本地仓库地址)文章源自随机的未知-https://sjdwz.com/11104.html
文章源自随机的未知-https://sjdwz.com/11104.html