Re: How to make fetch get everything?
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jun 1, 2011, 06:59 UTC
- Message-ID
- <4DE5E357.1050408@viscovery.net>
- In-Reply-To
- <1306886776234-6425155.post@n2.nabble.com>
Am 6/1/2011 2:06, schrieb garyc618:
Show 11 quoted lines
> 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