I made the mistake of committing to default on my Bitbucket-hosted Mercurial repository. Now, I can no longer push any changes even if they are on another branch. I get an error:
permission denied to update branch default
I've even tried pushing to a specific branch using `hg push -b BranchName`, but the permission error on `default` is a show-stopper even when I'm not trying to push to that branch. How can I fix this so that I'm able to push changes on two other branches?
Do you also have uncommited changes on your current branch? Check with hg status
If so, you can try the following:
hg shelve --all
hg up correct_branch_name
The correct_branch_name is the branch to which you actually wanna push the changes. Afterwards you can do hg commit and hg push to make sure your changes are on the new branch.
Did that fix anything?
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
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!
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