switch: add short option for --detach
[gitweb.git] / t / t2020-checkout-detach.sh
index 1fa670625c5be87294eec9c5fe86bf2defff2ce2..743c7248a21d6967c0717973830dc1393f5109ef 100755 (executable)
@@ -206,6 +206,12 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
 
          git checkout -b <new-branch-name>
 
+       Or undo this checkout with:
+
+         git checkout -
+
+       Turn off this advice by setting config variable advice.detachedHead to false
+
        HEAD is now at \$commit three
        EOF
 
@@ -282,6 +288,12 @@ test_expect_success 'describe_detached_head does print SHA-1 ellipsis when asked
 
          git checkout -b <new-branch-name>
 
+       Or undo this checkout with:
+
+         git checkout -
+
+       Turn off this advice by setting config variable advice.detachedHead to false
+
        HEAD is now at \$commit... three
        EOF