Documentation: move linked worktree description from checkout to worktree
[gitweb.git] / Documentation / git-checkout.txt
index 33ad2adf5ce86119e55f94fa1d29233e8caf4a67..77b7141f0247ce42ba52ed09c493da3c2e50c7f1 100644 (file)
@@ -225,6 +225,19 @@ This means that you can use `git checkout -p` to selectively discard
 edits from your current working tree. See the ``Interactive Mode''
 section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
 
+--to=<path>::
+       Check out a branch in a separate working directory at
+       `<path>`. A new working directory is linked to the current
+       repository, sharing everything except working directory
+       specific files such as HEAD, index, etc. See
+       linkgit:git-worktree[1] for a description of linked worktrees.
+
+--ignore-other-worktrees::
+       `git checkout` refuses when the wanted ref is already checked
+       out by another worktree. This option makes it check the ref
+       out anyway. In other words, the ref can be held by more than one
+       worktree.
+
 <branch>::
        Branch to checkout; if it refers to a branch (i.e., a name that,
        when prepended with "refs/heads/", is a valid ref), then that