sat
sat

Reputation: 169

hg push abort: http authorization required. i am pushing to my local bitbucket repository

i am trying to push my changes to my local remote repository in bitbucket. i have access to this repository. but when i do this, it is showing like this. it should show prompt for password but it is not showing.

$ hg push
pushing to https://[email protected]/sat801/i4330-notification-sm
abort: http authorization required

and in my .hg folder, this is my hgrc file

[ui]
username = sat801 <*******@example.com>
editor = nano

[paths]
default = https://[email protected]/sat801/i4330-notification-sm

i can neither push anything in my local repo nor pull anything from it. it is showing the same error

abort: http authorization required

please let me know how to solve this problem

Upvotes: 7

Views: 7936

Answers (2)

Jonathan
Jonathan

Reputation: 7098

I had to do this:

~/.hgrc

[auth]
bb.prefix = bitbucket.org
bb.username = johndoe
bb.password = *********
bb.schemes = http https

Where "bb" can be anything, and prefix corresponds to the http server domain

Upvotes: 8

djc
djc

Reputation: 11711

I think you either have to use sat801:[email protected] (i.e. include your password) or forego putting your username in.

Upvotes: 8

Related Questions