【问题标题】:hg push abort: http authorization required. i am pushing to my local bitbucket repositoryhg push abort:需要 http 授权。我正在推送到我的本地 bitbucket 存储库
【发布时间】:2013-04-08 00:32:47
【问题描述】:

我正在尝试将我的更改推送到 bitbucket 中的本地远程存储库。我可以访问这个存储库。但是当我这样做时,它会像这样显示。它应该显示提示输入密码,但它没有显示。

$ hg push
pushing to https://sat801@bitbucket.org/sat801/i4330-notification-sm
abort: http authorization required

在我的 .hg 文件夹中,这是我的 hgrc 文件

[ui]
username = sat801 <*******@example.com>
editor = nano

[paths]
default = https://sat801@bitbucket.org/sat801/i4330-notification-sm

我既不能在我的本地仓库中推送任何东西,也不能从中提取任何东西。它显示相同的错误

abort: http authorization required

请告诉我如何解决这个问题

【问题讨论】:

  • 我建议您首先联系 bitbucket 支持:bitbucket.org/support 并查看文档以验证您的设置。以前有用吗?

标签: mercurial authorization bitbucket required


【解决方案1】:

我认为您要么必须使用sat801:mypassword@bitbucket.org(即包含您的密码),要么放弃输入您的用户名。

【讨论】:

  • 这对主仓库有效,但对子仓库失败
  • TortoiseHG 建议不要这样做,因为它可以嵌入到整个团队的 hgrc 中。
【解决方案2】:

我必须这样做:

~/.hgrc

[auth]
bb.prefix = bitbucket.org
bb.username = johndoe
bb.password = *********
bb.schemes = http https

其中“bb”可以是任何东西,前缀对应http服务器域

【讨论】:

  • 用 mercurial_keyring 搞了这么多,而这就是我所要做的?哈太好了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-11-20
  • 2023-03-05
  • 1970-01-01
  • 1970-01-01
  • 2010-11-14
  • 2018-07-30
  • 1970-01-01
相关资源
最近更新 更多