其他分享
首页 > 其他分享> > Git

Git

作者:互联网

Git的安装

下载地址:https://git-scm.com/, 详细安装教程参考:https://www.cnblogs.com/xueweisuoyong/p/11914045.html
安装完成后,打开Git Bash,输入

$ git config --global user.name "你的名字"
$ git config --global user.email "你的eamil"

Git使用遇到的问题

1、执行 git clone git@github.com:zhangxinyucx/learngit.git命令,提示:

The authenticity of host 'github.com (20.205.243.166)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

原因是:新生成的密钥,在ssh目录下少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,便报了这样的错误,此时选择yes回车之后,便可,同时生成了缺少了的known_hosts文件

标签:git,Git,key,known,yes,com
来源: https://www.cnblogs.com/dhjy/p/15918890.html