X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-checkout.sh;h=92ec069a3acacc2d12c2c709311969f3d0aa4153;hb=6900679c2f6d937a5a6ef616869c8887690ad19d;hp=4192a99fec1e137599b250a4f65c1b1e4201c601;hpb=f388cec3d77751a6c20b3b10415344f5355b5a2f;p=git.git diff --git a/git-checkout.sh b/git-checkout.sh index 4192a99fe..92ec069a3 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -146,8 +146,11 @@ fi [ -z "$branch$newbranch" ] && [ "$new" != "$old" ] && - die "git checkout: to checkout the requested commit you need to specify - a name for a new branch which is created and switched to" + die "git checkout: provided reference cannot be checked out directly + + You need -b to associate a new branch with the wanted checkout. Example: + git checkout -b $arg +" if [ "X$old" = X ] then