Git Pull和Commit报错:git-upload-pack not permitted

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平台中,重新验证邮箱即可恢复使用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值