Bitbucket Git推送未被允许。

3

我正在尝试从Eclipse向Bitbucket账户推送代码,但是遇到了错误*"push not permitted"*,我能够克隆并从Bitbucket存储库获取文件。

在Eclipse Git中执行向上游命令时遇到以下错误:

git@bitbucket.org:codedevelopers/coder.git push not permitted

我不是管理员,但我的管理员授予了我读写权限。我尝试过使用SSH和HTTPS推送,但是出现了相同的错误。我被卡在了这个问题上。我有另一个用户是管理员,他可以将他的代码推送到Bitbucket。
谢谢你的回复。

假设您复制并粘贴了错误信息,也许您弄错了。 "codedevlopers" 应该是 "codedevelopers"(注意 'v' 和 'l' 之间的 'e')吗? - John Szakmeister
@jszakmeister 您是正确的,这是打字错误,已经更正。 - pappu_kutty
你在Eclipse中检查了URL吗?那里是否有相同的错误?我问这个是因为那可能是实际的问题。很容易忽略这样的拼写错误。 :-) - John Szakmeister
1个回答

6
  • Ssh would work if your public key was added to the repo admin ssh key management page.
  • https should work if you are using your bitbucket username and email, provided the admin did grant you access using that exact email
    So try:

    git remote set-url origin https://myusername@bitbucket.org/codedevelopers/coder
    

(将myusername替换为您的BitBucket帐户用户名)

请参阅“授予用户和组访问权限

https://confluence.atlassian.com/download/attachments/304578655/send_invite.png?version=2&modificationDate=1379979323235&api=v2&effects=drop-shadow

请与管理员核实他/她用于授予您对该存储库的写访问权限的电子邮件。


jszakmeister评论中所述,请注意您最终使用的url是否存在打字错误

例如,有一个名为bitbucket.org/codedevelopr(而不是'codedevelopers')的用户。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接