我正在尝试将代码从eclipse推送到bitbucket帐户,我收到错误*"push not permitted"*
,我能够克隆并从bitbucket存储库中获取文件。
我在eclipse git中推送到上游命令时遇到问题,我遇到错误
git@bitbucket.org:codedevelopers/coder.git push not permitted
我不是管理员,但我有管理员授予的读写权限,我已经尝试了ssh和https push,我得到同样的错误。我坚持这个问题。我有另一个管理员用户,可以将他的代码推送到bitbucket。
感谢您的回复
答案 0 :(得分:3)
https应该有效,前提是管理员确实授予您使用该确切电子邮件的权限 所以试试:
git remote set-url origin https://myusername@bitbucket.org/codedevelopers/coder
(用您的BitBucket帐户用户名替换myusername
)
请参阅“Grant users and groups access”
仔细检查该管理员,他/她曾使用哪封电子邮件授予您对该仓库的写入权限。
jszakmeister在the comments中提到的,请注意您最终使用的网址中的拼写错误。
例如,有一个用户bitbucket.org/codedevelopr(而不是“codedevelopers
”)。