unpack-trees: oneway_merge to update submodules
[gitweb.git] / Documentation / git-worktree.txt
index 3044d305a6557a6e3c506fbbbf8035a050e83d47..f850e8ffb66a41d8d76c0cc67967f7a27782bc3c 100644 (file)
@@ -115,6 +115,16 @@ OPTIONS
        such as configuring sparse-checkout. See "Sparse checkout"
        in linkgit:git-read-tree[1].
 
+--[no-]guess-remote::
+       With `worktree add <path>`, without `<commit-ish>`, instead
+       of creating a new branch from HEAD, if there exists a tracking
+       branch in exactly one remote matching the basename of `<path>,
+       base the new branch on the remote-tracking branch, and mark
+       the remote-tracking branch as "upstream" from the new branch.
++
+This can also be set up as the default behaviour by using the
+`worktree.guessRemote` config option.
+
 --[no-]track::
        When creating a new branch, if `<commit-ish>` is a branch,
        mark it as "upstream" from the new branch.  This is the