{"thread":{"id":"43664","subject":"Seeking git recipe to grab a single file","startedAt":"2006-12-06T21:22:22Z","lastAt":"2006-12-06T21:51:39Z","messageCount":2,"participants":["Mitch Bradley","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"296443","messageId":"4577348E.4090105@firmworks.com","threadId":"43664","inReplyTo":null,"subject":"Seeking git recipe to grab a single file","fromName":"Mitch Bradley","fromEmail":"wmb@firmworks.com","sentAt":"2006-12-06T21:22:22Z","receivedAt":"2006-12-06T21:22:22Z","isPatch":false,"sender":{"key":"wmb@firmworks.com","avatar":null},"body":"I want to grab a single file from a remote git repository into the \ncurrent directory, which is not a git tree.  Is there an easy way to do \nthat?  I have tried using git-fetch and git-cat-file, without success.\n\nThanks,\nMitch Bradley\n"},{"id":"297012","messageId":"81b0412b0612061351v16aa6b94q8dce9404a5b2675a@mail.gmail.com","threadId":"43664","inReplyTo":"4577348E.4090105@firmworks.com","subject":"Re: Seeking git recipe to grab a single file","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-12-06T21:51:39Z","receivedAt":"2006-12-06T21:51:39Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"On 12/6/06, Mitch Bradley <wmb@firmworks.com> wrote:\n> I want to grab a single file from a remote git repository into the\n> current directory, which is not a git tree.  Is there an easy way to do\n> that?  I have tried using git-fetch and git-cat-file, without success.\n\nIf the remote repo has a gitweb interface than it's simple:\nwget 'http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;h=0451f69353bad4d07de34fd4658f40b805bd467a;f=Kbuild'\n\nOtherwise, there is no simple way to do it yet.\n"}]}