From: Lars Hjemli Date: Fri, 22 Dec 2006 09:39:30 GMT Subject: Re: confusion over the new branch and merge config Message-ID: <8c5c35580612220139x491dc3ecwf3fc60dda2fa379f@mail.gmail.com> In-Reply-To: <200612220841.46016.andyparkins@gmail.com> On 12/22/06, Andy Parkins wrote: > On Thursday 2006 December 21 22:17, Nicolas Pitre wrote: > > $ git branch -r > > * master > > origin/HEAD > > origin/html > > origin/maint > > origin/man > > origin/master > > origin/next > > origin/pu > > origin/todo > > I'm trying to track down why "master" is being shown in this case"; This looks very much like "git branch -a". I've just tried this: $ git clone git://git2.kernel.org/pub/scm/git/git.git Initialized empty Git repository in /home/larsh/src/tmp/git/.git/ remote: Generating pack... remote: Done counting 34527 objects. remote: Deltifying 34527 objects. remote: 100% (34527/34527) done Indexing 34527 objects. remote: Total 34527, written 34527 (delta 23920), reused 34111 (delta 23623) 100% (34527/34527) done Resolving 23920 deltas. 100% (23920/23920) done Checking files out... 100% (748/748) done $ cd git $ git branch -r origin/HEAD origin/html origin/maint origin/man origin/master origin/next origin/pu origin/todo $ git branch -a * master origin/HEAD origin/html origin/maint origin/man origin/master origin/next origin/pu origin/todo $ cp .git/refs/heads/master .git/refs/remotes/master $ git branch -r master origin/HEAD origin/html origin/maint origin/man origin/master origin/next origin/pu origin/todo $ git symbolic-ref HEAD refs/remotes/master $ git branch -r fatal: HEAD not found below refs/heads! $ git --version git version 1.4.4.2.gee60 -- larsh