# Commands

```{rubric} Repository creation:
```
- [clone](./commands/clone.rst): make a copy of an existing repository
- [init](./commands/init.rst): create a new repository in the given directory
```{rubric} Remote repository management:
```
- [incoming](./commands/incoming.rst): show new changesets found in source
- [outgoing](./commands/outgoing.rst): show changesets not found in the destination
- [paths](./commands/paths.rst): show aliases for remote repositories
- [pull](./commands/pull.rst): pull changes from the specified source
- [push](./commands/push.rst): push changes to the specified destination
- [serve](./commands/serve.rst): start stand-alone webserver
```{rubric} Change creation:
```
- [commit](./commands/commit.rst): commit the specified files or all outstanding changes
```{rubric} Change manipulation:
```
- [backout](./commands/backout.rst): reverse effect of earlier changeset
- [graft](./commands/graft.rst): copy changes from other branches onto the current branch
- [merge](./commands/merge.rst): merge another revision into working directory
```{rubric} Change organization:
```
- [bookmarks](./commands/bookmarks.rst): create a new bookmark or list existing bookmarks
- [branch](./commands/branch.rst): set or show the current branch name
- [branches](./commands/branches.rst): list repository named branches
- [phase](./commands/phase.rst): set or show the current phase name
- [tag](./commands/tag.rst): add one or more tags for the current or given revision
- [tags](./commands/tags.rst): list repository tags
```{rubric} File content management:
```
- [annotate](./commands/annotate.rst): show changeset information by line for each file
- [cat](./commands/cat.rst): output the current or given revision of files
- [copy](./commands/copy.rst): mark files as copied for the next commit
- [diff](./commands/diff.rst): diff repository (or selected files)
- [grep](./commands/grep.rst): search for a pattern in specified files
```{rubric} Change navigation:
```
- [bisect](./commands/bisect.rst): subdivision search of changesets
- [heads](./commands/heads.rst): show branch heads
- [identify](./commands/identify.rst): identify the working directory or specified revision
- [log](./commands/log.rst): show revision history of entire repository or files
```{rubric} Working directory management:
```
- [add](./commands/add.rst): add the specified files on the next commit
- [addremove](./commands/addremove.rst): add all new files, delete all missing files
- [files](./commands/files.rst): list tracked files
- [forget](./commands/forget.rst): forget the specified files on the next commit
- [purge](./commands/purge.rst): removes files not tracked by Mercurial
- [remove](./commands/remove.rst): remove the specified files on the next commit
- [rename](./commands/rename.rst): rename files; equivalent of copy + remove
- [resolve](./commands/resolve.rst): redo merges or set/view the merge status of files
- [revert](./commands/revert.rst): restore files to their checkout state
- [root](./commands/root.rst): print the root (top) of the current working directory
- [shelve](./commands/shelve.rst): save and set aside changes from the working directory
- [status](./commands/status.rst): show changed files in the working directory
- [summary](./commands/summary.rst): summarize working directory state
- [unshelve](./commands/unshelve.rst): restore a shelved change to the working directory
- [update](./commands/update.rst): update working directory (or switch revisions)
```{rubric} Change import/export:
```
- [archive](./commands/archive.rst): create an unversioned archive of a repository revision
- [bundle](./commands/bundle.rst): create a bundle file
- [export](./commands/export.rst): dump the header and diffs for one or more changesets
- [import](./commands/import.rst): import an ordered set of patches
- [unbundle](./commands/unbundle.rst): apply one or more bundle files
```{rubric} Repository maintenance:
```
- [admin::verify](./commands/admin_verify.rst): verify the integrity of the repository
- [manifest](./commands/manifest.rst): output the current or given revision of the project manifest
- [recover](./commands/recover.rst): roll back an interrupted transaction
- [verify](./commands/verify.rst): verify the integrity of the repository
```{rubric} Help:
```
- [config](./commands/config.rst): show combined config settings from all hgrc files
- [help](./commands/help.rst): show help for a given topic or a help overview
- [version](./commands/version.rst): output version and copyright information