X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-checkout.txt;h=3bccffae628e065a6cd92155a9283d5710991fd7;hb=30984ed2e92651962c6b8bdacf1f84da75d1da95;hp=9cd51514dbfd987db4423e254e8bab7284352525;hpb=8ea6ae99b2314ddb24dd9121335b7a5583047f05;p=git.git diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 9cd51514d..3bccffae6 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -133,6 +133,10 @@ the conflicted merge in the specified paths. + When this parameter names a non-branch (but still a valid commit object), your HEAD becomes 'detached'. ++ +As a special case, the "`@\{-N\}`" syntax for the N-th last branch +checks out the branch (instead of detaching). You may also specify +"`-`" which is synonymous with "`@\{-1\}`". Detached HEAD