Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

403 error when pushing a new branch on remote server

LucileDT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 29, 2020

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
AUG Leaders

Atlassian Community Events