Skip to content

Commit

Permalink
hg-add: add page (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke authored and agnivade committed Dec 14, 2017
1 parent f6d3783 commit fcd411e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pages/common/hg-add.md
@@ -0,0 +1,23 @@
# hg add

> Adds specified files to the staging area for the next commit in Mercurial.
- Add files or directories to the staging area:

`hg add {{path/to/file}}`

- Add all unstaged files matching a specified pattern:

`hg add --include {{pattern}}`

- Add all unstaged files, excluding those that match a specified pattern:

`hg add --exclude {{pattern}}`

- Recursively add sub-repositories:

`hg add --subrepos`

- Perform a test-run without performing any actions:

`hg add --dry-run`
1 change: 1 addition & 0 deletions pages/common/hg.md
@@ -1,6 +1,7 @@
# hg

> A command line interface for Mercurial, a distributed source control management system.
> See the `hg-add` and `hg-commit` pages for additional information.
- Execute Mercurial command:

Expand Down

0 comments on commit fcd411e

Please sign in to comment.