git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: garyc618 <gary.carter@eigen.com>
Cc: git@vger.kernel.org
Subject: Re: How to make fetch get everything?
Date: Wed, 01 Jun 2011 08:59:35 +0200	[thread overview]
Message-ID: <4DE5E357.1050408@viscovery.net> (raw)
In-Reply-To: <1306886776234-6425155.post@n2.nabble.com>

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

      reply	other threads:[~2011-06-01  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01  0:06 How to make fetch get everything? garyc618
2011-06-01  6:59 ` Johannes Sixt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DE5E357.1050408@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=gary.carter@eigen.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).