Trying to push to bitbucket.org (authenticate not accepting password)

Mateusz_Winiarski March 27, 2014

Greetings I'm trying to do push to bitbucket.orgwith SourceTree.

I've got my branch "shahmatt" in a project. I've checked out this branch to local PC. Did some changes. And now I want to push changes to bitbucket. And it keeps asking for my password (which is correct, I use it to login to my account on bitbucket.org).

Show Full Output says:

hg push --new-branch shahmatt

pushing to <address>

....

remote: permission denied to update branch default

remote: transaction abort!

...

I don't have access to default branch, but I want to push to shahmatt branch.

What am I doing wrong?

Thanks for help.

1 answer

1 accepted

1 vote
Answer accepted
Mateusz_Winiarski March 27, 2014

I figured it out.

First, "When you checkout a branch, you should already have a local clone of the parent repository.", as it is said in Bitbucked documentation.

Then, after checking out a branch, making changes, and commiting, when you push you need to use advanced options (at a bottom of a push window) and write down branch to which you will push.

Then it asked about password, but accepted it, and push was done.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2014

Interesting. I wonder if that is bitbucket-specific or mercurial-specific. With Git, whenever I checkout a remote branch, it automatically sets the local branch to track the correct remote one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events