From: Hallvard Breien Furuseth Date: Wed, 02 May 2012 14:21:07 GMT Subject: Re: Newbie grief Message-ID: <85ff02fc05e4a52ee0b1f1922f774a8d@ulrik.uio.no> In-Reply-To: <4FA05E9F.9090709@palm.com> On Tue, 01 May 2012 15:07:27 -0700, Rich Pixley wrote: > On 5/1/12 14:39 , Randal L. Schwartz wrote: >> "git fetch" updates the remote tracking branches, which you commonly >> reference preceded by "origin". So "git fetch" DOES NOT TOUCH >> "master". >> It touches only "origin/master". > > Yes. I understand that that is how git typically works in a non-bare > repository. And in a bare repository: git init --bare foo.git cd foo.git git remote add bar ../bar.git git fetch bar --> adds bar/master etc. For some reason, 'git clone --bare' does not treat the cloned repository the same way - it just copies it under refs/heads/ instead of refs/remotes/, without even adding it as a remote. -- Hallvard