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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html