原因是本地仓库和远程的SSH不匹配,解决办法:
1.出现Are you sure you want to continue connecting (yes/no)?时,选择yes
2. ls -al ~/.ssh
3. ssh-keygen -t rsa -C "github用户名",按三次回车
4.cat ~/.ssh/id_rsa.pub生成新的SSH
5.登陆github,点击头像-settings-new SSH,复制新生成的SSH
6.正常push
原因是本地仓库和远程的SSH不匹配,解决办法:
1.出现Are you sure you want to continue connecting (yes/no)?时,选择yes
2. ls -al ~/.ssh
3. ssh-keygen -t rsa -C "github用户名",按三次回车
4.cat ~/.ssh/id_rsa.pub生成新的SSH
5.登陆github,点击头像-settings-new SSH,复制新生成的SSH
6.正常push