2010-09-30 31 views
6

我在bitbucket.org上创建了私有存储库。我想从IntelliJ IDEA中使用它。使用hg4idea插件将bitbucket.org上的private Mercurial存储库克隆到InetlliJ IDEA中?

我选择“从版本控制中退出”,并且有消息框Mercurial Repository URLTest Repository按钮。
我应该输入什么内容Mercurial Repository URL

我试图

  • http://bitbucket.org/my_user_name/my_repo_name
  • https://和。

没有用。
当我点击Test Repository时,我总是收到消息“Repository test has failed。”。
我认为这是因为没有字段的用户名和密码,但我不能以某种方式输入此数据?

回答

0

由于只有latest hg4idea版本支持认证,你可以尝试,为accessing and cloning your Bitbucket repo

hg clone http://myuser:[email protected]/MY_USER/MY_REPO 

(也就是说,如果你的到位桶回购是一个私人的一个,你没有在你的问题提:
myuser“和” mypassword',那么将是您的帐户到位桶的登录名和密码,使用basic access authentication为HTTP URL)

+0

我试过了,但没有成功:( – amorfis 2010-10-01 07:50:47

+0

@amorfis:你可以试试通过'https'(没有用户名或密码,因为它只需要找到你的公钥)?(假设你的公钥在' 〜/ .ssh/id_ras.pub') – VonC 2010-10-01 11:12:54

+0

@amorfis:没关系:http://bitbucket.org/viacoban/hg4idea/issue/34/support-for-authentication-on-push-pull“不支持ssh基于密钥的认证“ – VonC 2010-10-01 11:16:55

0

我能够通过使用命令行提示符T克隆库得到这个工作他命令BitBucket在我的概述页面上提供给我。在完成这些工作并在IDEA中激活项目的版本控制后,IDEA允许我成功地从存储库中推入和拉出。

相关问题