Trying to push to (authenticate not accepting password)

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

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

This widget could not be displayed.

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.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

60 views 2 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you