将 repo 从 bitbucket 传输到 github 失败

Transferring repo from bitbucket to github failing

我正在尝试从我的 bitbucket 帐户将存储库导入 github,它似乎失败并显示以下消息,

"Your old project requires credentials for read-only access
We will only temporarly store them for importing."

用于导入的路径类似于:https://blahb@bitbucket.org/blal/blahblahblah.git

我应该输入什么凭据,我应该把凭据放在哪里?我正在尝试他们网站上提供的 github 的 "Import Repository" 功能:

Your old project requires credentials for read-only access
We will only temporarly store them for importing.

这基本上意味着我们需要提供 BitBucket 登录 ID 和密码。当我输入 BitBucket ID 和密码时,导入顺利进行,然后我可以在 github.

上看到导入的存储库

使用您的 Bitbucket ID 和密码,而不是 Github 的凭据。这可能看起来令人困惑,因为您的浏览器可能会填充 GitHub 的凭据,因为您在 Github 的站点上。

使用您的 Bitbucket 凭据。

注意: 如果您在 Bitbucket 上启用了双因素身份验证。转到 Bitbucket 设置并创建应用程序密码。在 GitHub 上进行身份验证时使用生成的密码,而不是正常的 Bitbucket 密码。

它也适用于私有存储库。

当我提供我的 GitHub 凭据时,我不断收到该对话框。 您需要提供 BitBucket 凭据。

伙计们,如果你遇到和我一样的问题,我通过提供 repo owner/maintainer 用户名解决了这个问题,然后在密码字段中我输入了我的 personal-access-token,因为我有个人访问令牌github 回购。

查看个人访问令牌文档here

答案在下面有更详细的描述

https://github.community/t/import-repository-not-working/2044/2