X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=Documentation%2Fgit-add.txt;h=d0cdb07844b8361debc1565f11b11b813fe81c57;hb=d32805dce7bdc45a3e4045e999fc5d56e3b46a82;hp=fd9e36b99f5506964ac8352b82bb7af05551a523;hpb=053a08f5bba3444d40516baf30a5d61e42e4fb93;p=git.git diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt index fd9e36b99..d0cdb0784 100644 --- a/Documentation/git-add.txt +++ b/Documentation/git-add.txt @@ -11,7 +11,7 @@ SYNOPSIS 'git add' [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p] [--edit | -e] [--all | [--update | -u]] [--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing] [--] - [...] + [...] DESCRIPTION ----------- @@ -49,7 +49,7 @@ commit. OPTIONS ------- -...:: +...:: Files to add content from. Fileglobs (e.g. `*.c`) can be given to add all matching files. Also a leading directory name (e.g. `dir` to add `dir/file1` @@ -100,20 +100,20 @@ apply to the index. See EDITING PATCHES below. -u:: --update:: - Only match against already tracked files in + Only match against already tracked files in the index rather than the working tree. That means that it will never stage new files, but that it will stage modified new contents of tracked files and that it will remove files from the index if the corresponding files in the working tree have been removed. + -If no is given, default to "."; in other words, +If no is given, default to "."; in other words, update all tracked files in the current directory and its subdirectories. -A:: --all:: - Like `-u`, but match against files in the + Like `-u`, but match against files in the working tree in addition to the index. That means that it will find new files as well as staging modified content and removing files that are no longer in the working tree.