summaryrefslogtreecommitdiffstats
path: root/git-add.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-05-09 05:46:08 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-05-09 05:46:08 +0000
commit6d76d61fb621d158ee26238e735e282e33fb1a81 (patch)
treeedcabf096615344f6d597c38b9faf68b26ba024d /git-add.txt
parent47d68a53947d51de4f67b6b7e4e7f76e71e16fb5 (diff)
downloadgit-htmldocs-6d76d61fb621d158ee26238e735e282e33fb1a81.tar.gz
Autogenerated HTML docs for v1.5.5.1-178-g1f81
Diffstat (limited to 'git-add.txt')
-rw-r--r--git-add.txt28
1 files changed, 18 insertions, 10 deletions
diff --git a/git-add.txt b/git-add.txt
index 35e67a06e..e0e730b6c 100644
--- a/git-add.txt
+++ b/git-add.txt
@@ -71,7 +71,9 @@ OPTIONS
the specified filepatterns before exiting.
-u::
- Update only files that git already knows about. This is similar
+ Update only files that git already knows about, staging modified
+ content for commit and marking deleted files for removal. This
+ is similar
to what "git commit -a" does in preparation for making a commit,
except that the update is limited to paths specified on the
command line. If no paths are specified, all tracked files in the
@@ -98,21 +100,27 @@ those in info/exclude. See link:repository-layout.html[repository layout].
EXAMPLES
--------
-git-add Documentation/\\*.txt::
- Adds content from all `\*.txt` files under `Documentation`
- directory and its subdirectories.
+* Adds content from all `\*.txt` files under `Documentation` directory
+and its subdirectories:
++
+------------
+$ git add Documentation/\\*.txt
+------------
+
Note that the asterisk `\*` is quoted from the shell in this
example; this lets the command to include the files from
subdirectories of `Documentation/` directory.
-git-add git-*.sh::
-
- Considers adding content from all git-*.sh scripts.
- Because this example lets shell expand the asterisk
- (i.e. you are listing the files explicitly), it does not
- consider `subdir/git-foo.sh`.
+* Considers adding content from all git-*.sh scripts:
++
+------------
+$ git add git-*.sh
+------------
++
+Because this example lets shell expand the asterisk (i.e. you are
+listing the files explicitly), it does not consider
+`subdir/git-foo.sh`.
Interactive mode
----------------