对于我推送到的所有其他 Mercurial 存储库,我可以在我的 hgrc 中设置我的用户名和密码(实际上是 Mercurial.ini,因为我使用的是 Windows)在特定域中进行操作,并且 Mercurial 不会提示我进行身份验证信息。然而,即使有了这些设置,Bitbucket总是要求我输入密码。
我的设置如下:
[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = myusername
bitbucket.password = mypassword
正如我所说,这些设置适用于我推送的所有其他存储库。