Merge branch 'nd/switch-and-restore'
[gitweb.git] / Documentation / git-checkout.txt
index a294652dd6753297d3e2f9647b88c5d0f2c247e4..cf3cac0a2b518ec902453d7e65b6b7d403a99ef7 100644 (file)
@@ -255,6 +255,8 @@ should result in deletion of the path).
 +
 When checking out paths from the index, this option lets you recreate
 the conflicted merge in the specified paths.
++
+When switching branches with `--merge`, staged changes may be lost.
 
 --conflict=<style>::
        The same as `--merge` option above, but changes the way the
@@ -328,6 +330,10 @@ leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
 <start_point>::
        The name of a commit at which to start the new branch; see
        linkgit:git-branch[1] for details. Defaults to `HEAD`.
++
+As a special case, you may use `"A...B"` as a shortcut for the
+merge base of `A` and `B` if there is exactly one merge base. You can
+leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
 
 <tree-ish>::
        Tree to checkout from (when paths are given). If not specified,