Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-12-22 23:06:54 +0300
committerJunio C Hamano <junkio@cox.net>2006-12-23 10:18:36 +0300
commit0a5761746ca046d546da6afc2b0079706a6629e0 (patch)
treef39f1a535412ee352928a51f522b713964fa1f33 /git-checkout.sh
parenta979d1289be6a3999d7e89bf0359ebf28075fc6b (diff)
checkout: make the message about the need for a new branch a bit clearer
Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-checkout.sh')
-rwxr-xr-xgit-checkout.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-checkout.sh b/git-checkout.sh
index 4192a99fec..92ec069a3a 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 <new_branch_name> $arg
+"
if [ "X$old" = X ]
then