面向百度安装
二、打开Git Bash Here 三、对着操作86130@LAPTOP-8FH1ED6D MINGW64 ~/Desktop $ cd ~/.ssh 86130@LAPTOP-8FH1ED6D MINGW64 ~/.ssh $ ls id_rsa id_rsa.pub known_hosts//证明以前有可以去找到 86130@LAPTOP-8FH1ED6D MINGW64 ~/.ssh $ rm *//不想找直接删掉 86130@LAPTOP-8FH1ED6D MINGW64 ~/.ssh $ ls//呕吼已经删掉了 86130@LAPTOP-8FH1ED6D MINGW64 ~/.ssh $ cd ~//返回到~目录,稳稳的! 86130@LAPTOP-8FH1ED6D MINGW64 ~ $ ssh-keygen -t rsa -C "jsxl***@163.com"//搞自己的邮箱 Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/86130/.ssh/id_rsa)://可以不输入,直接回车 Enter passphrase (empty for no passphrase)://可以不输入,直接回车 Enter same passphrase again://可以不输入,直接回车 Your identification has been saved in /c/Users/86130/.ssh/id_rsa//私钥 Your public key has been saved in /c/Users/86130/.ssh/id_rsa.pub//公钥,github要的就是这个 The key fingerprint is: SHA256:W6qTfzeU1H1es/RtB88uHe04Il1/ml9kAH5JEX6jGEE jsxl***@163.com The key's randomart image is: +---[RSA 3072]----+ | .E. +o | | ..+ . | | ...=o.| | +.+==| | S .o o.=@| | + o .=X| | .o o . B+| | o. o = +.B| | .o.. o oo=o| +----[SHA256]-----+4、打开id_rsa.pub文件,全选复制公钥内容。 gitee也是如此 五、创建存储库
点击push后显示如下为成功



