pappu_kutty
pappu_kutty

Reputation: 2488

bitbucket git push not permitted

i am trying to push code to bitbucket account from eclipse, where i am getting error *"push not permitted"*, i am able to clone and get files from the bitbucket repository.

i am facing problem while pushing to upstream command in eclipse git, am getting below error

[email protected]:codedevelopers/coder.git push not permitted

i am not admin, but i have read and write access granted by my admin, i have tried both ssh and https push, i am getting same error. i am stuck with this issue. i have another user who is admin ,can able to push his code to bitbucket.

Thanks for your replies

Upvotes: 3

Views: 7067

Answers (1)

VonC
VonC

Reputation: 1323223

  • 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://[email protected]/codedevelopers/coder
    

(replace myusername by your BitBucket account username)

See "Grant users and groups access"

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

Double-check with that admin which email he/she used to grant you write access to this repo.


A mentioned by jszakmeister in the comments, look out for a typo in the url you end up using.

For instance, there is a user bitbucket.org/codedevelopr (instead of 'codedevelopers').

Upvotes: 6

Related Questions