* How to make fetch get everything?
@ 2011-06-01 0:06 garyc618
2011-06-01 6:59 ` Johannes Sixt
0 siblings, 1 reply; 2+ messages in thread
From: garyc618 @ 2011-06-01 0:06 UTC (permalink / raw)
To: git
Hi List,
In one book it says that "git fetch [remote]" pulls down everything you
don't currently have in your local repository. However, when I look at
FETCH_HEAD it only has the master head. Other branches don't seem to get
fetched.
I tried "git fetch [remote] *:*" but that gave fatal error messages.
Then I tried "git fetch [remote] "*:foo/*" which worked great - I got every
single branch.
I am setting up a shared repo for a small devel team, which I want everyone
to push/pull to. It seems safer to do that, than to have people just make
the shared mount their current directory, then run git commands, but how can
people see every branch in the shared repo using only fetch, other than the
trick with foo/* that I used above? Am I missing something, or is this just
going to be kind of clunky?
Thanks,
Gary Carter
--
View this message in context: http://git.661346.n2.nabble.com/How-to-make-fetch-get-everything-tp6425155p6425155.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to make fetch get everything?
2011-06-01 0:06 How to make fetch get everything? garyc618
@ 2011-06-01 6:59 ` Johannes Sixt
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Sixt @ 2011-06-01 6:59 UTC (permalink / raw)
To: garyc618; +Cc: git
Am 6/1/2011 2:06, schrieb garyc618:
> Hi List,
>
> In one book it says that "git fetch [remote]" pulls down everything you
> don't currently have in your local repository. However, when I look at
> FETCH_HEAD it only has the master head. Other branches don't seem to get
> fetched.
>
> I tried "git fetch [remote] *:*" but that gave fatal error messages.
>
> Then I tried "git fetch [remote] "*:foo/*" which worked great - I got every
> single branch.
Assuming you have either cloned from the remote or have set it up using
"git remote add origin /where/the/remote/is", you should have tried
git fetch origin
which would give you all remote branches in [refs/]remotes/origin/*.
-- Hannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 0:06 How to make fetch get everything? garyc618
2011-06-01 6:59 ` Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).