错误1.error: failed to push some refs to '[email protected]:xxx/cifar-10.git'
可能原因远端仓库中的README.md 文件没有更新到本地
解决方法:
git pull --rebase origin master
错误2:
Warning: Permanently added the RSA host key for IP address '13.250.177.223'
原因:远端没有加入本地的公钥
解决方法:
ssh-keygen -t rsa -C "github账号"
会生产公钥,保存位置看图下,系统不一样保存位置也不一样
然后cat 位置文件,将内容添加到
就OK了
错误3:fatal: remote origin already exists.
解决方法:
git remote rm origin 删除远程仓库
git remote add origin [email protected]:xxx/xxx.git