From fcd411eafcc1884b59db9466df4ec4752b5bc967 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 14 Dec 2017 05:22:24 +0000 Subject: [PATCH] hg-add: add page (#1789) --- pages/common/hg-add.md | 23 +++++++++++++++++++++++ pages/common/hg.md | 1 + 2 files changed, 24 insertions(+) create mode 100644 pages/common/hg-add.md diff --git a/pages/common/hg-add.md b/pages/common/hg-add.md new file mode 100644 index 000000000..28d643d0f --- /dev/null +++ b/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` diff --git a/pages/common/hg.md b/pages/common/hg.md index d735d9df3..d3531aa93 100644 --- a/pages/common/hg.md +++ b/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: