Thread (2 messages) 2 messages, 2 authors, 2016-06-15

Re: [PATCH] checkout -d: explicitly detach HEAD even when switching to the tip of a branch

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:43:02

Junio C Hamano wrote:
You cannot currently checkout the tip of an existing branch
without moving to the branch.

This allows you to detach your HEAD and place it at such a
commit, with:

    $ git checkout -d master
What about

      $ git checkout master^0

trick to force detaching?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help