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`