зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
a979d1289b
Коммит
0a5761746c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче