【发布时间】:2011-05-09 12:01:35
【问题描述】:
我对版本控制非常陌生,所以我的问题非常基础。我正试图为此目的使用 Mercurial。我的 Mac 上有一个本地工作目录。我想使用 Bitbucket 备份此目录中的文件和存储库。
请问以下命令:
hg push localDirectoryWithRepo http://bitbucker.org/user_name/repo_on_bitbucket
将我的文件也传输到 Bitbucket,还是仅传输到存储库?
另外,我尝试了命令:
hg clone localDirectoryWithRepo http://bitbucker.org/user_name/repo_on_bitbucket
但是,我收到错误提示
abort: cannot create new http repository
我如何最初克隆bitbucket上的本地工作目录,然后更新bitbucket上的工作目录,使其与我的本地工作目录相同。
一如既往,非常感谢。
【问题讨论】:
标签: version-control mercurial bitbucket