Is there a way to not have Bitbucket ask for my password every time when doing remote Mercurial operations?

后端 未结 2 1511
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 18:58

With all other Mercurial repos that I push to, I can set my username and password in my hgrc (actually, Mercurial.ini since I\'m using Windows) for doing operations at a particu

2条回答
  •  臣服心动
    2021-02-03 19:34

    Turns out the issue here was that I was using the URL for the repository displayed on my Bitbucket repository's page, which includes the username in front of the bitbucket domain name, so it ended up looking like https://myusername@bitbucket.org/myusername/myrepo.

    Apparently, when the username is provided in this way, it ignores what's in the [auth] section. I just changed the URL in the hgrc for my local clone of the repo, and it picked up the [auth] section stuff just fine.

    Apologies for not including this detail in the question.

提交回复
热议问题