add worktree.guessRemote config option
[gitweb.git] / Documentation / git-add.txt
index 1c3da6d7ddb632b33ce1c4118dec161e816ce7a9..b700beaff5ad2eaa407bfb3818e016a5bb27d87c 100644 (file)
@@ -168,6 +168,13 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
        be ignored, no matter if they are already present in the work
        tree or not.
 
+--no-warn-embedded-repo::
+       By default, `git add` will warn when adding an embedded
+       repository to the index without using `git submodule add` to
+       create an entry in `.gitmodules`. This option will suppress the
+       warning (e.g., if you are manually performing operations on
+       submodules).
+
 --chmod=(+|-)x::
        Override the executable bit of the added files.  The executable
        bit is only changed in the index, the files on disk are left