【发布时间】:2011-06-09 22:40:51
【问题描述】:
我从 Mercurial 开始。我正在阅读mercurial book,但仍有问题。
我一个月前开始了我的项目,其中有很多文件和目录。现在,我想使用 Mercurial 并在 bitbucket 中创建一个帐户。现在,我想在 Bitbucket 中设置这个项目。如何将所有这些文件添加到 bitbucket 存储库?
这就是我认为我可以做的: 我可以尝试(1)克隆空仓库(来自 bitbucket)(1)将所有文件复制到该目录中,(3)发出“hg add”,然后(4)提交。
也许你有更好的方法来做到这一点。
谢谢!
(1)
hg clone https://ME@bitbucket.org/ME/myproject
(2)
cp existing-project/* myproject/
cd myproject
(3)
hg add
(4)
hg commit -u ME
(5)
hg push (i think i have to do this to make the changes visible)
【问题讨论】:
标签: mercurial project-management project