To clone a Mercurial repository, use the `hg clone` command.
要克隆一个Mercurial仓库,使用`hg clone`命令。
You can commit changes with the `hg commit` command and add a message describing the changes.
你可以使用`hg commit`命令提交更改,并添加一条描述更改的消息。
To view the commit history, execute `hg log` in the repository directory.
要在仓库目录中查看提交历史,执行`hg log`命令。
To pull updates from a remote repository, use the `hg pull` command.
从远程仓库获取更新时,使用`hg pull`命令。
Mercurial supports branching and merging, allowing for parallel development."
Mercurial支持分支和合并,以便于并行开发。
Use `hg status` to check which files have been modified or added.
通过`hg status`检查哪些文件已被修改或添加。
To create a new branch, type `hg branch new_branch_name`."
创建新分支时,输入`hg branch new_branch_name`。
You can merge changes from one branch to another with `hg merge` followed by the branch name.
使用`hg merge`合并来自一个分支到另一个分支,后面跟上分支名。
Mercurial uses a distributed model, meaning each developer has a complete copy of the repository."
Mercurial采用分布式模型,意味着每个开发者都有完整版本库的副本。
To push changes to a shared remote repository, use `hg push`."
将更改推送到共享的远程仓库时,使用`hg push`。
未经许可,严禁转发。QQ交流群:688169419