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

Re: Seeking git recipe to grab a single file

From
Alex Riesen <raa.lkml@gmail.com>
Date
Dec 6, 2006, 21:51 UTC
Message-ID
<81b0412b0612061351v16aa6b94q8dce9404a5b2675a@mail.gmail.com>
In-Reply-To
<4577348E.4090105@firmworks.com>
On 12/6/06, Mitch Bradley <wmb@firmworks.com> wrote:
> I want to grab a single file from a remote git repository into the
> current directory, which is not a git tree.  Is there an easy way to do
> that?  I have tried using git-fetch and git-cat-file, without success.

If the remote repo has a gitweb interface than it's simple: wget 'http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;h=0451f69353bad4d07de34fd4658f40b805bd467a;f=Kbuild'

Otherwise, there is no simple way to do it yet.
Previous: Mitch Bradley
Message 2 of 2 in “Seeking git recipe to grab a single file”
  1. Mitch BradleyDec 6, 2006
  2. Alex RiesenDec 6, 2006

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.