From: Felipe Contreras Date: Sun, 22 Nov 2020 21:56:22 GMT Subject: Re: [PATCH 00/28] Use main as default branch name Message-ID: In-Reply-To: <87y2it8zfm.fsf@osv.gnss.ru> On Sun, Nov 22, 2020 at 4:24 AM Sergey Organov wrote: > > Junio C Hamano writes: > > The latter (i.e. you are not on a branch) does not grow any branch. > > That's one way of looking at it, resulting in this "detached HEAD" > thingy that is too technical for the git user proper, I think. Moreover, > it immediately raises the question: if it doesn't grow any branch, /what/ > does it grow? > > Another way of describing it, that I prefer, is that you /are/ on an > /unnamed/ branch and new commits grow this particular /unnamed/ branch. > No need not only for "detached", but even for "HEAD" to be known to the > user to get the idea, I think. This is precisely what it is conceptually. And there's absolutely no need for the user to know what HEAD is behind the curtains, especially since they can just use @, and think of it as "the current branch". It is clearly a branch, for example you can do "git push origin @:my-fix". Cheers. -- Felipe Contreras