例说hg(五)————创建repository

 

本文由博主原创,转载请注明出处(保留此处和链接):

IT人生http://blog.csdn.net/robinblog/article/details/17933747


 

 

    有很多网站提供了免费的Mercurial版本库托管,最有名的要数Bitbucket 和 Google Code,由于博主使用的是BB,在此以BB为例来说明一下使用Mercurial来创建repository。 在此建议看官注册一个Bitbucket账号(Bitbucket注册)。

    Bitbucket为我们提供了一个很友好的操作面板,当你登录后,就会看到下面的界面:


    点击右边的Create repository或者蓝色部分的Create,就会出现下面面板:


      填写对应信息,完成repository的创建:

      1.填写repos的名称。

      2.对repos的描述。

      3.选择repos的访问权限,如果想私有,就勾选Access Level。

      4.Forking 默认。

      5.Repository type 选择Mercurial,我们这里练习Mercurial的使用

      6.Issue tracking 和 Wiki也勾选吧,以后追踪bug,写说明有用。

      7.选择你工程的语言类型。

      8.点击Create repository 创建我们的工程。(我创建testHg为私有的测试Repos)


 

    点击Clone,获取仓库的克隆地址:



     复制地址到终端,获取刚才创建的repository:

 

c_wspace$ hg clone https://RobinLau@bitbucket.org/RobinLau/testhghttp authorization required
realm: Bitbucket.org HTTP
user: RobinLau
password: 
destination directory: testhg
no changes found
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

 

 


    到此为止,我们的repository创建成功,只要在其中添加工程就可以了。



 

posted on 2014-01-07 13:27  我的小人生  阅读(318)  评论(0编辑  收藏  举报