Re: Newbie grief
On Tue, 01 May 2012 15:07:27 -0700, Rich Pixley wrote:
Show 8 quoted lines
> 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