外观
Git连接Github
参考资料
Git 文档:Pro Git book
Github 文档:生成新的 SSH 密钥并将其添加到 ssh-agent
流程
- 安装 Git 软件,在Git - Downloads下载适合自己系统的版本,安装即可
- 生成密钥
ssh-keygen -t ed25519 -C "your_email@example.com"

- 将生成的公钥
xxxx.pub
添加到Github中,公钥一般在C:\Users\用户名\.ssh
目录下





- 验证SSH连接
ssh -T git@github.com

- 配置 Git 用户名和邮箱
git config --global user.name "your_username"
git config --global user.email "your_email@example.com"
