Android Studio上push项目出现的一些问题

在Android Studio上push项目失败,报错如下:

Push failed:
Failed with error: unable to access 'https://github.com/ok406lhq/KoyouUsdk.git/': The requested URL returned error: 403

解决思路有几种:

  • 第一种:使用命令:
git config --global http.proxy 
git config --global --unset http.proxy

后面发现报错不一样,所以这种方法对我没用。
Push failed: Failed with error: unable to access 'https://github.com/cmshome/springMVC.git/': Unknown SSL protocol error in connection to github.com:1080

  • 第二种:清除凭证:

之前push过细目的话,会有保存过的git凭证,删掉它:


这样操作后会重新提示输入github账号密码,重新验证即可:


不知道为什么 这种方法对我没用,还是会报错403。。然后我就上github看了,
在github的通知里边提醒我去修改邮箱:
Please verify your email address to access all of GitHub’s features.
An email containing verification instructions was sent to [email protected].

由于之前用的是QQ邮箱,上面图可以看到,已经是Undeliverable(不可传达)了,再添加新的邮箱验证即可,记得在github账密界面也要重新输入新的邮箱地址作为账号登录。

唔。。。有点坑,说到底还是QQ邮箱的问题,不安全,发了几遍验证请求都收不到,还是换用gmail或163邮箱的好

你可能感兴趣的:(Android Studio上push项目出现的一些问题)