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

Feature wish: Cloning without history

From
SESven Ekman <svekman@yahoo.se>
Date
May 18, 2006, 19:21 UTC
Message-ID
<20060518192144.15912.qmail@web25913.mail.ukl.yahoo.com>
Hello,

Would it be possible to add an option to git-clone to skip the complete history? The result should be a repository which contains the current head only (or maybe a specified tag) and has that commit id added to .git/info/grafts. For the fetch process, this would certainly have to imply the --no-tags flag.

>From a user's point of view I'd imagine something like
this:
git-clone --no-history=v2.6.16 \
    git://git.kernel.org/.../linux-2.6.git

The background: I'm regularly building kernels for a handful of machines, and while I am happy to use the blessings of git to get updates from the -stable releases, I see no point in wasting space for a copy of the complete kernel history on every single machine. In practice this works pretty good, once I have manually created such a castrated repository.

Sven
Next: Jakub Narebski
Message 1 of 7 in “Feature wish: Cloning without history”
  1. Sven EkmanMay 18, 2006
  2. Jakub NarebskiMay 18, 2006
  3. built-in tar-tree and remote tar-treeJunio C Hamano, May 19, 2006
  4. Junio C HamanoMay 19, 2006
  5. Sven EkmanMay 19, 2006
  6. Jakub NarebskiMay 19, 2006
  7. Junio C HamanoMay 19, 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.