随笔分类 -  Git

版本控制
摘要:新生成密钥的时候,git clone或者push的时候,经常会报这样的错误: The authenticity of host 'github.com (192.30.255.112)' can't be established. RSA key fingerprint is SHA256:nThb 阅读全文
posted @ 2021-06-09 18:08 LucasLin 阅读(943) 评论(0) 推荐(0)
摘要:原因:在初始化配置Git用户信息时,设置了用户密码 解决方式:重置用户密码,并设置为空 $ ssh-keygen -p Enter file in which the key is (/c/Users/xxx/.ssh/id_rsa): (直接Enter)Enter old passphrase:( 阅读全文
posted @ 2020-03-01 10:09 LucasLin 阅读(1541) 评论(0) 推荐(0)
摘要:秘钥 生成秘钥 $ ssh-keygen (按照提示指定存放目录和密码) 其它形式:$ ssh-keygen -t rsa -C "your_email@example.com" (...) 查看公钥 $ cat ~/.ssh/id_rsa.pub 配置 用户信息 $ git config --gl 阅读全文
posted @ 2019-09-07 16:57 LucasLin 阅读(412) 评论(1) 推荐(0)