windows git安装步骤
1,从官网下载安装包:gitg官网 进行安装
2,配置git环境:
git config --global user.name "Your Name"
git config --global user.email "Your Email"
3,生成 SSH Key:
ssh-keygen -t rsa -b 4096 -C "Your Email"
4,查看生成的 SSH Key:
cat ~/.ssh/id_rsa.pub
5,将公钥添加到 GitHub/GitLab:
GitHub:登录 GitHub,点击右上角头像 > Settings > SSH and GPG keys。粘贴 id_rsa.pub 的内容添加进去;
GitLab:登录 GitLab,点击右上角头像 > Preferences > SSH Keys。粘贴 id_rsa.pub 的内容添加进去。