Eclipse在Pull和Commit的时候突然报错:https://github.com/xxx/xxx.git: git-upload-pack not permitted (私有代码地址已注释掉)
org.eclipse.jgit.api.errors.TransportException: https://github.com/xxx/xxx.git: git-upload-pack not permitted
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:263)
at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:97)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:128)
at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:140)
at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.runInWorkspace(PullOperationUI.java:115)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.jgit.errors.TransportException:
https://github.com/xxx/xxx.git: git-upload-pack not permitted
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:505)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:296)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
... 8 more
网上的很多答案都不是解决方案,最终在stackoverflow里发现类似的问题,最终尝试成功。
解决方案:https://stackoverflow.com/questions/10475726/git-receive-pack-not-permitted-on-push
问题原因:就是邮箱账户验证失效了,在各大Git平台中,重新验证邮箱即可恢复使用。