hg
Mercurial - a distributed source control management system. Some subcommands such as
commithave their own usage documentation. More information: https://www.mercurial-scm.org/help/commands.
- Create an empty Mercurial repository:
hg init
- Clone a remote Mercurial repository from the internet:
hg clone
- View the status of a local repository:
hg status
- Add all new files to the next commit:
hg add
- Commit changes to version history:
hg commit
- Push local changes to a remote repository:
hg push
- Pull any changes made to a remote:
hg pull
- Reset everything the way it was in the latest commit:
hg update ; hg purge
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
