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

Clone a repository with only the objects needed for a single tag

From
BLBen Lau <benlau@ust.hk>
Date
Nov 2, 2005, 02:02 UTC
Message-ID
<43681E47.4010203@ust.hk>
Hi,
   Is there any method to clone/copy a repository with only the objects 
needed
for a single tag in order to save disk space?
   For example, if I want to start a new project based on a specific 
version of kernel
like v2.6.14. I would run `git-clone` and then checkout a new branch 
based on the tag.
However, one of the development host is a notebook computer which has 
only 2GB space
leave. Therefore I hope the space occupied by the respository could be 
mininiumized
while it keeps to be able to fetch/update from my master repository.
  Thanks for any advise.
Next: Junio C Hamano
Message 1 of 6 in “Clone a repository with only the objects needed for a single tag”
  1. Ben LauNov 2, 2005
  2. Junio C HamanoNov 2, 2005
  3. Ben LauNov 2, 2005
  4. Andreas EricssonNov 2, 2005
  5. Ben LauNov 2, 2005
  6. Junio C HamanoNov 2, 2005

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.