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

Re: Partial clone/pull?

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jul 20, 2010, 22:38 UTC
Message-ID
<AANLkTik6nn0bjQkysY9kfk3rZNKT-CNKtf9BA8MlzGZ1@mail.gmail.com>
In-Reply-To
<29220205.post@talk.nabble.com>
On Tue, Jul 20, 2010 at 6:15 PM, Dread Quixadhal <quixadhal@yahoo.com> wrote:
Show 9 quoted lines
> I'm having some trouble figuring out how to do this.  I assumed I'd create a
> new repository and then use git pull to merge the directories I want in my
> distribution repository.  I can't seem to find a way to specify what files I
> want though.
>
> Let's say I had a repository called stuff, with directories a, b, and c.  I
> want to make a distribution repository containing just a and b, but with
> full histories so a "git pull" will sync from the stuff repository, but
> ignore the "c" directory.

This is not a particularly easy thing to do in git. git-subtree is a partial solution: http://github.com/apenwarr/git-subtree

Have fun,
Avery
Previous: Dread Quixadhal
Message 2 of 2 in “Partial clone/pull?”
  1. Dread QuixadhalJul 20, 2010
  2. Avery PennarunJul 20, 2010

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.