一、安装git客户端(git下载地址https://git-scm.com/downloads)
面向百度安装
二、打开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
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后显示如下为成功
|