git push 时的一个问题

我用的是eclipse 的git 插件管理代码,不知道是换过登录地点还是改过绑定的邮箱密码,最近提交会报如下错误:

eclipe 中 push操作如下:

Can't connect to any repository: https://github.com/galen17/example1200.git (https://github.com/galen17/example1200.git: git-receive-pack not permitted on 'https://github.com/galen17/example1200.git/')

用git命令行push,如下:

remote: You must verify your email address. remote: See https://github.com/settings/emails. fatal: unable to access 'https://github.com/galen17/example1200.git/': The requested URL returned error: 403

通过查看git命令行的提示,是需要到See https://github.com/settings/emails中验证一下邮箱,然后我登录github 到https://github.com/settings/emails页面,确实显示需要验证。

就是页面有个提示发送验证,然后登录到自己邮箱验证一下。

下图是验证好后的,这样问题就解决了。

猜你喜欢

转载自www.cnblogs.com/daguozb/p/11582861.html