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

Re: fetching a single commit from remote repo

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 10, 2008, 16:48 UTC
Message-ID
<m3sl00g3lc.fsf@localhost.localdomain>
In-Reply-To
<1530970.y9vPlhFxz8@yoush.homelinux.org>
"Nikita V. Youshchenko" <yoush@debian.org> writes:
> I'm looking for a way to fetch a single snapshot, without history, from
> remote git repository.
> 
> I've found how to do it with a head (clone --depth 1, or fetch --depth 1).

You can also try "git archive --remote=<repo>" if it is enabled, or if project has gitweb, then use 'snapshot' feature (if enabled).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jan Hudec
Message 5 of 5 in “fetching a single commit from remote repo”
  1. Nikita V. YoushchenkoFeb 10, 2008
  2. Johannes SchindelinFeb 10, 2008
  3. Nikita V. YoushchenkoFeb 10, 2008
  4. Jan HudecFeb 15, 2008
  5. Jakub NarebskiFeb 10, 2008

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.