问题记录
电脑第一次安装 ·git· 后运行 git clone 报错问题
步骤一: 设置用户名
与邮箱
git config --global user.name "wangzha" //你的用户名
git config --global user.email "408285649@qq.com" 你的邮箱地址
git config --list 查看配置
步骤二: 设置秘钥
ssh-keygen -t rsa -C "408285649@qq.com" //填写你的邮箱,然后一路回车即可
步骤三: github key
setting
SSH and GPG keys
new SSH key
填写key,key的位置在 当前电脑登录用户名下如Administrator
或自定义
的用户名下的 .ssh
文件夹下id_rsa.pub
复制到github输入框下即可。
步骤四:git clone 提示
Are you sure you want to continue connecting (yes/no/[fingerprint])?
不可以直接回车,要输入yes
再回车