我对版本控制很陌生,所以我的问题非常基本。我正试图为此目的使用 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 上的工作目录,使其与我的本地工作目录相同。
一如既往,非常感谢。