mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
tone down the detached head warning
This is not meant to frighten people or even to suggest they might be doing something wrong, but rather to notify them of a state change and provide a likely option in the case this state was entered by mistake. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
63460f285c
commit
d117452a80
@ -155,9 +155,9 @@ then
|
||||
detached="$new"
|
||||
if test -n "$oldbranch"
|
||||
then
|
||||
detach_warn="warning: you are not on ANY branch anymore.
|
||||
If you meant to create a new branch from this checkout, you may still do
|
||||
so (now or later) by using -b with the checkout command again. Example:
|
||||
detach_warn="Note: you are not on ANY branch anymore.
|
||||
If you want to create a new branch from this checkout, you may do so
|
||||
(now or later) by using -b with the checkout command again. Example:
|
||||
git checkout -b <new_branch_name>"
|
||||
fi
|
||||
elif test -z "$oldbranch" && test -n "$branch"
|
||||
|
Loading…
Reference in New Issue
Block a user