git config --global user.name "用户名"
git config --global user.email "邮箱"
ssh-keygen -t rsa -C "邮箱"
生成文件

复制id_rsa.pub文件
找到 github 点头像👉 settings 👉 SSH and GPG keys
配置完后

验证 ssh -T git@github.com 返回 Hi <用户名>! You’ve successfully authenticated, but GitHub does not provide shell access.











