git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How to make fetch get everything?

From
Ggaryc618 <gary.carter@eigen.com>
Date
Jun 1, 2011, 00:06 UTC
Message-ID
<1306886776234-6425155.post@n2.nabble.com>
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.

Next: Johannes Sixt
Message 1 of 2 in “How to make fetch get everything?”
  1. garyc618Jun 1, 2011
  2. Johannes SixtJun 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.