Skip to content

Commit

Permalink
Use current "detached HEAD" message
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Ackermann <th.acker@arcor.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Thomas Ackermann authored and Junio C Hamano committed Aug 27, 2013
1 parent 333d7d3 commit 95f9be5
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,17 @@ referenced by a tag:

------------------------------------------------
$ git checkout v2.6.17
Note: moving to "v2.6.17" which isn't a local branch
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>
Note: checking out 'v2.6.17'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 427abfa... Linux v2.6.17
------------------------------------------------

Expand All @@ -326,7 +333,7 @@ and git branch shows that you are no longer on a branch:
$ cat .git/HEAD
427abfa28afedffadfca9dd8b067eb6d36bac53f
$ git branch
* (no branch)
* (detached from v2.6.17)
master
------------------------------------------------

Expand Down Expand Up @@ -3639,7 +3646,7 @@ working on a branch.

-------------------------------------------------
$ git branch
* (no branch)
* (detached from d266b98)
master
-------------------------------------------------

Expand Down

0 comments on commit 95f9be5

Please sign in to comment.