$ git add Documentation/\\*.txt+
From 6d76d61fb621d158ee26238e735e282e33fb1a81 Mon Sep 17 00:00:00 2001
From: Junio C Hamano
- 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
@@ -402,31 +404,33 @@ those in info/exclude. See repository layout
- Adds content from all *.txt files under Documentation
- directory and its subdirectories.
+Adds content from all *.txt files under Documentation directory
+and its subdirectories:
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.
- 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:
Because this example lets shell expand the asterisk (i.e. you are
+listing the files explicitly), it does not consider
+subdir/git-foo.sh.EXAMPLES
-
+
+
$ git add Documentation/\\*.txt
+$ git add git-*.sh
+Interactive mode