一、安装git
自行百度,补充:Git提供两种配置方式,一种是HTTP证书,另外一种是SSH证书,如果用SSH证书,要将SSH客户端改成OpenSSH,SSH密钥指向生成的密钥文件
二、使用Http证书
1、生成HTTP密钥文件
安装OpenSSL,使用Openssl生产密钥文件,然后去github配置一下,详细查看官网https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key
二、使用SSH证书
1、安装OpenSSH:https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse其他系统自行百度,windows参考:https://blog.youkuaiyun.com/v781423070/article/details/131322758?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169465793616800180670050%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=169465793616800180670050&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~baidu_landing_v2~default-7-131322758-null-null.142^v93^chatgptT3_2&utm_term=openssh%E5%AE%89%E8%A3%85&spm=1018.2226.3001.4187
2、为github帐号添加SSH keys
官方文档:https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agentcsdn参考:https://blog.youkuaiyun.com/lanxuan1993/article/details/84953434
csdn参考1:https://blog.youkuaiyun.com/weixin_44624036/article/details/131500590