arr*_*man 32 git import github repository private-repository
我在 git 上有一个私人仓库,我想将其导入到另一个私人仓库中。当我尝试导入它时,我使用我的帐户登录,然后Your old project requires credentials for read-only access. We will only temporarily store them for importing.
继续弹出此消息,并且我无法导入存储库。有人可以帮忙吗?
小智 33
我遇到了同样的问题,并且能够通过使用个人访问令牌(对私有存储库的令牌访问)而不是密码来解决它。从 github 社区看一下,它提供了更多细节(hobojoe1848 的答案):https ://github.community/t/import-repository-not-working/2044/4
Lim*_*555 26
如果您要将私有存储库从 Bitbucket 导入到 GitHub,则需要创建一个具有只读访问权限的新应用程序密码,以便 GitHub 导入该存储库。
脚步 :
建议您在使用完应用程序密码后立即撤销该密码。
使用个人访问令牌(代替密码) - 直接链接创建一个: https: //github.com/settings/tokens/new
\n(受到 tedel 的回答的启发,但是 1)编辑队列已满,所以我无法编辑它,2)他们的链接现在已损坏 \xe2\x80\x94 以及 Adnan\ 的评论)。
\n