bitbucket git push不允许

时间:2014-02-11 07:49:10

标签: eclipse git bitbucket

我正在尝试将代码从eclipse推送到bitbucket帐户,我收到错误*"push not permitted"*,我能够克隆并从bitbucket存储库中获取文件。

我在eclipse git中推送到上游命令时遇到问题,我遇到错误

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

我不是管理员,但我有管理员授予的读写权限,我已经尝试了ssh和https push,我得到同样的错误。我坚持这个问题。我有另一个管理员用户,可以将他的代码推送到bitbucket。

感谢您的回复

1 个答案:

答案 0 :(得分:3)

  • 如果您的公钥已添加到repo admin ssh密钥管理页面,则Ssh将起作用。
  • 如果您使用bitbucket用户名和电子邮件,
  • https应该有效,前提是管理员确实授予您使用该确切电子邮件的权限 所以试试:

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

(用您的BitBucket帐户用户名替换myusername

请参阅“Grant users and groups access

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

仔细检查该管理员,他/她曾使用哪封电子邮件授予您对该仓库的写入权限。


jszakmeisterthe comments中提到的,请注意您最终使用的网址中的拼写错误

例如,有一个用户bitbucket.org/codedevelopr(而不是“codedevelopers”)。