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

后端 未结 2 1513
爱一瞬间的悲伤
爱一瞬间的悲伤 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:44

    Are you using the ssh:// URLs for bitbucket or the https:// URLs? Bitbucket offers both. If it's ssh you need to use ssh-agent or similar ([auth] sections aren't used by ssh) to keep a key in memory or switch to the https: URLs. You could also try adding bitbucket.schemes = http https just in case, though if you're using the https:// URLs the default value of https should be fine. Also be aware that bitbucket usernames are case sensitive -- that got me for awhile.

    If none of that's working for you try turning on debugging with --debug and see if there are any messages that help.

提交回复
热议问题