summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a979d12)
raw | patch | inline | side by side (parent: a979d12)
author | Nicolas Pitre <nico@cam.org> | |
Fri, 22 Dec 2006 20:06:54 +0000 (15:06 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Dec 2006 07:18:36 +0000 (23:18 -0800) |
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh | patch | blob | history |
diff --git a/git-checkout.sh b/git-checkout.sh
index 4192a99fec1e137599b250a4f65c1b1e4201c601..92ec069a3acacc2d12c2c709311969f3d0aa4153 100755 (executable)
--- a/git-checkout.sh
+++ b/git-checkout.sh
[ -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 <new_branch_name> $arg
+"
if [ "X$old" = X ]
then