我根据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随机生成的。是这样吗?
万一需要,.hg/hgrc
回购邮件中的cs1
如下所示:
[paths]
default = https://caliChander@bitbucket.org/caliChander/cs1
我在OS X Mavericks上。谢谢你的帮助!
答案 0 :(得分:1)
我很好奇为什么它说&#34;密码未设置&#34;
由于网址可能同时包含用户名和密码,因此您的https://caliChander@bitbucket.org/
只有用户名部分
[ui]部分与auth-stage无关(它只是提供信息的数据,用于定义用户数据,在日志中显示本地提交),只有用于身份验证的[auth]用户名密码。您可以在hgrc中临时禁用密码并手动输入