X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=Documentation%2Fgit-checkout.txt;h=6ae8bf8deeb2928bad689d1f50cbfe34c806a376;hb=f3cfeb3078ce4af0ac764515795f7e0849a88931;hp=5b697eee1b7632a046b48d488b3c3af75ad7fa45;hpb=be2dab9c801fe28a6937e8d426f891e610a82a49;p=thirdparty%2Fgit.git diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 5b697eee1b..6ae8bf8dee 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -198,6 +198,7 @@ Use `--no-guess` to disable this. Create the new branch's reflog; see linkgit:git-branch[1] for details. +-d:: --detach:: Rather than checking out a branch to work on it, check out a commit for inspection and discardable experiments. @@ -350,6 +351,10 @@ leave out at most one of `A` and `B`, in which case it defaults to `HEAD`. :: Tree to checkout from (when paths are given). If not specified, the index will be used. ++ +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`. \--:: Do not interpret any more arguments as options.