hg-add: add page (#1789)

This commit is contained in:
Owen Voke
2017-12-14 05:22:24 +00:00
committed by Agniva De Sarker
parent f6d3783b8d
commit fcd411eafc
2 changed files with 24 additions and 0 deletions

23
pages/common/hg-add.md Normal file
View File

@@ -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`