summaryrefslogtreecommitdiffstats
path: root/git-checkout.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-03-07 12:17:00 +0900
committerJunio C Hamano <gitster@pobox.com>2019-03-07 12:17:00 +0900
commit11f1537a82c84e620d742b3bc4256952defb28df (patch)
tree2923ff40fbf10f29b7eaa506c2deb52e00e08dde /git-checkout.txt
parent9149123b58ede4ca92a71abd3c09e3e2ad205b55 (diff)
downloadgit-htmldocs-11f1537a82c84e620d742b3bc4256952defb28df.tar.gz
Autogenerated HTML docs for v2.21.0-135-g6e0cc
Diffstat (limited to 'git-checkout.txt')
-rw-r--r--git-checkout.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/git-checkout.txt b/git-checkout.txt
index 8c3d4128c..f179b4373 100644
--- a/git-checkout.txt
+++ b/git-checkout.txt
@@ -260,6 +260,9 @@ the conflicted merge in the specified paths.
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.
++
+Note that this option uses the no overlay mode by default (see also
+`--[no-]overlay`), and currently doesn't support overlay mode.
--ignore-other-worktrees::
`git checkout` refuses when the wanted ref is already checked
@@ -280,6 +283,13 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
Do not attempt to create a branch if a remote tracking branch
of the same name exists.
+--[no-]overlay::
+ In the default overlay mode, `git checkout` never
+ removes files from the index or the working tree. When
+ specifying `--no-overlay`, files that appear in the index and
+ working tree, but not in <tree-ish> are removed, to make them
+ match <tree-ish> exactly.
+
<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