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

Can you git clone -partial? I am looking to make a mobile app and it would be nice to have.

From
JHJames Hancock <james@bookstobrains.com>
Date
Oct 1, 2014, 16:51 UTC
Message-ID
<CAOHoyPr3E9U3XPEjmrSNkT0okHcRN2H7OKyrt-Ar3WMMDL=4vw@mail.gmail.com>

i am thinking about developing an app and I want to integrate it with git but I only want to store a portion of the file on disk. It is going to be in a mobile enviornment and I want to just get one file or a small group of files.

I read that you can clone and then only look at one peice but is it possible just to clone one peice? And if not what would it take? Maybe this is a feature people would like to have. Just hypothetically, what would need to happen?

Either git clonepartial /repo /file/or/folder/in/repo Or Git clone -partial /repo /file/or/folder/in/repo

I guess you would need to keep the projects .git in order to maintain consistency, or would you? I'm going to do some more research about what .git does exactly.

Cheers, James

Next: Junio C Hamano
Message 1 of 3 in “Can you git clone -partial? I am looking to make a mobile app and it would be nice to have.”
  1. James HancockOct 1, 2014
  2. Junio C HamanoOct 1, 2014
  3. James HancockOct 1, 2014

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.