{"thread":{"id":"27514","subject":"How to make fetch get everything?","startedAt":"2011-06-01T00:06:16Z","lastAt":"2011-06-01T06:59:35Z","messageCount":2,"participants":["garyc618","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"169087","messageId":"1306886776234-6425155.post@n2.nabble.com","threadId":"27514","inReplyTo":null,"subject":"How to make fetch get everything?","fromName":"garyc618","fromEmail":"gary.carter@eigen.com","sentAt":"2011-06-01T00:06:16Z","receivedAt":"2011-06-01T00:06:16Z","isPatch":false,"sender":{"key":"gary.carter@eigen.com","avatar":null},"body":"Hi List,\n\nIn one book it says that \"git fetch [remote]\" pulls down everything you\ndon't currently have in your local repository.  However, when I look at\nFETCH_HEAD it only has the master head.  Other branches don't seem to get\nfetched.\n\nI tried \"git fetch [remote] *:*\" but that gave fatal error messages.\n\nThen I tried \"git fetch [remote] \"*:foo/*\" which worked great - I got every\nsingle branch.\n\nI am setting up a shared repo for a small devel team, which I want everyone\nto push/pull to.   It seems safer to do that, than to have people just make\nthe shared mount their current directory, then run git commands, but how can\npeople see every branch in the shared repo using only fetch, other than the\ntrick with foo/* that I used above?  Am I missing something, or is this just\ngoing to be kind of clunky?\n\nThanks,\n\nGary Carter\n\n--\nView this message in context: http://git.661346.n2.nabble.com/How-to-make-fetch-get-everything-tp6425155p6425155.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"169098","messageId":"4DE5E357.1050408@viscovery.net","threadId":"27514","inReplyTo":"1306886776234-6425155.post@n2.nabble.com","subject":"Re: How to make fetch get everything?","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2011-06-01T06:59:35Z","receivedAt":"2011-06-01T06:59:35Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 6/1/2011 2:06, schrieb garyc618:\n> Hi List,\n> \n> In one book it says that \"git fetch [remote]\" pulls down everything you\n> don't currently have in your local repository.  However, when I look at\n> FETCH_HEAD it only has the master head.  Other branches don't seem to get\n> fetched.\n> \n> I tried \"git fetch [remote] *:*\" but that gave fatal error messages.\n> \n> Then I tried \"git fetch [remote] \"*:foo/*\" which worked great - I got every\n> single branch.\n\nAssuming you have either cloned from the remote or have set it up using\n\"git remote add origin /where/the/remote/is\", you should have tried\n\n   git fetch origin\n\nwhich would give you all remote branches in [refs/]remotes/origin/*.\n\n-- Hannes\n"}]}