我根据 1Pass 的瞭望塔推荐更改了我的 Bitbucket 密码。从那以后,尽管我可以通过浏览器登录,但我无法拉/推我的任何存储库。我已经尝试过 HTTP 和 SSH,但都不起作用。
这是一个示例输出。
hg pull --debug https://caliChander@bitbucket.org/caliChander/cs1
using https://bitbucket.org/caliChander/cs1
http auth: user caliChander, password not set
sending capabilities command
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
using auth.bitbucket.* for authentication
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
http auth: user caliChander, password *******************************
using auth.bitbucket.* for authentication
bitbucket.org certificate successfully verified
abort: authorization failed
我很好奇为什么当我~/.hgrc
看起来像这样时它说“密码未设置”:
[ui]
username = First Last <some.email@random.com>
[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = caliChander
bitbucket.password = some_very_long_password_here
bitbucket.schemes = http https
[web]
cacerts = /etc/hg-dummy-cert.pem
我的直觉是密码字段中不允许使用某些字符?这是通过 1Pass 随机生成的。是这样吗?
以防万一, repo.hg/hgrc
中的内容cs1
如下所示:
[paths]
default = https://caliChander@bitbucket.org/caliChander/cs1
我在 OS X Mavericks 上。谢谢您的帮助!