Skip to content

Commit 061e29e

Browse files
authored
Merge pull request #1658 from HonkingGoose/update-git-add-h-output
Update `git add -h` output, based on Git version 2.32.0
2 parents 6a19f03 + dd71165 commit 061e29e

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

book/01-introduction/sections/help.asc

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,23 @@ In addition, if you don't need the full-blown manpage help, but just need a quic
2828
$ git add -h
2929
usage: git add [<options>] [--] <pathspec>...
3030
31-
-n, --dry-run dry run
32-
-v, --verbose be verbose
33-
34-
-i, --interactive interactive picking
35-
-p, --patch select hunks interactively
36-
-e, --edit edit current diff and apply
37-
-f, --force allow adding otherwise ignored files
38-
-u, --update update tracked files
39-
--renormalize renormalize EOL of tracked files (implies -u)
40-
-N, --intent-to-add record only the fact that the path will be added later
41-
-A, --all add changes from all tracked and untracked files
42-
--ignore-removal ignore paths removed in the working tree (same as --no-all)
43-
--refresh don't add, only refresh the index
44-
--ignore-errors just skip files which cannot be added because of errors
45-
--ignore-missing check if - even missing - files are ignored in dry run
46-
--chmod (+|-)x override the executable bit of the listed files
31+
-n, --dry-run dry run
32+
-v, --verbose be verbose
33+
34+
-i, --interactive interactive picking
35+
-p, --patch select hunks interactively
36+
-e, --edit edit current diff and apply
37+
-f, --force allow adding otherwise ignored files
38+
-u, --update update tracked files
39+
--renormalize renormalize EOL of tracked files (implies -u)
40+
-N, --intent-to-add record only the fact that the path will be added later
41+
-A, --all add changes from all tracked and untracked files
42+
--ignore-removal ignore paths removed in the working tree (same as --no-all)
43+
--refresh don't add, only refresh the index
44+
--ignore-errors just skip files which cannot be added because of errors
45+
--ignore-missing check if - even missing - files are ignored in dry run
46+
--chmod (+|-)x override the executable bit of the listed files
47+
--pathspec-from-file <file> read pathspec from file
48+
--pathspec-file-nul with --pathspec-from-file, pathspec elements are separated with NUL character
4749
----
4850

0 commit comments

Comments
 (0)