打开GIT命令窗口,输入
git config --global user.name "你的用户名"
配置用户名
git config --global user.email "你的邮箱"
配置邮箱
然后再输入ssh-keygen -t rsa -C "你的邮箱",按三次enter(输入该命令后会在本地的C:\user\administrator下面的ssh文件夹中生成公钥和私钥)
打开公钥后复制黏贴至GIT上即可
打开GIT命令窗口,输入
git config --global user.name "你的用户名"
配置用户名
git config --global user.email "你的邮箱"
配置邮箱
然后再输入ssh-keygen -t rsa -C "你的邮箱",按三次enter(输入该命令后会在本地的C:\user\administrator下面的ssh文件夹中生成公钥和私钥)
打开公钥后复制黏贴至GIT上即可