windows下载
https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.1/Git-2.41.0-64-bit.exe
安装
傻瓜式下一步
配置用户信息
安装完 Git 之后,要做的第一件事就是设置你的用户名和邮件地址。 这一点很重要,因为每一个 Git 提交都会使用这些信息,它们会写入到你的每一次提交中,不可更改
git config --global user.name "yangleilei"
git config --global user.email "1603999549@qq.com"
配置ssh公钥
# 配置ssh公钥
ssh-keygen -t rsa -C "1603999549@qq.com"
# 查看ssh公钥配置
cat /c/Users/bangsun/.ssh/id_rsa.pub
# 配置ssh公钥到gitee、github
复制、粘贴
检查git配置
git config --list --show-origin