运行git bash
git config --global user.name "yourname"
git config --global user.email "yourname@email.address"ssh-keygen.exe -C "yourname@email.address" -t rsa
putty生成的pub文件格式不正确,需求转换
ssh-keygen -i -f your_name_o.pub > your_name.pub
运行git bash
git config --global user.name "yourname"
git config --global user.email "yourname@email.address"ssh-keygen.exe -C "yourname@email.address" -t rsa
putty生成的pub文件格式不正确,需求转换
ssh-keygen -i -f your_name_o.pub > your_name.pub
转载于:https://www.cnblogs.com/moonbear/p/3338484.html