Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

403 error when pushing a new branch on remote server

Scenario:

- clone a repository for which you do not have branch creation rights

- using a terminal, create a new branch `develop`

- using a terminal, commit changes on `develop`

- using the web ui, setup your account to give it branch creation permission

- using a terminal, push changes by doing `git push --set-upstream origin develop`

 

Expected behaviour:

- push is done

- `develop` is pushed on the distant repository

 

Current behaviour:

- an error occurs:
```
remote: Forbidden
fatal: unable to access 'https://bitbucket.org/username/project.git/': The requested URL returned error: 403
```

How I solved it for my case:

- using the web ui, I created `develop`

- using a terminal, I've setup my local branch to follow the distant one: `git branch --set-upstream-to=origin/develop develop`
- using a terminal, I pushed: `git push`

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,845 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you