From 562157f08bf17c70af57ab5835108eb5c9c28536 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Sep 2013 20:23:57 +0200 Subject: add detached HEAD to glossary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- using-git.texinfo | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'using-git.texinfo') diff --git a/using-git.texinfo b/using-git.texinfo index 2e947e9..0266730 100644 --- a/using-git.texinfo +++ b/using-git.texinfo @@ -1327,7 +1327,16 @@ An object that is not reachable, even from other unreachable objects; there are not references to it. -@c @item deatched @code{HEAD} +@item detached @code{HEAD} +@code{HEAD} that does not store the name of a +branch. Git allows you to checkout arbitrary +commmits, when you checkout a commit that is +not the tip of any branch, the @code{HEAD} is +``detached''. + +To store changes make in a detached @code{HEAD} +you must first create a new branch from it. + @c @item directory @c @item dirty @c @item evil merge -- cgit v1.2.3-70-g09d2