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

Re: Tracking selected files from different repository

From
NSNicolas Sebrecht <nicolas.s.dev@gmx.fr>
Date
Jun 20, 2010, 08:22 UTC
Message-ID
<20100620082217.GA13060@vidovic>
In-Reply-To
<1276971140188-5199181.post@n2.nabble.com>
The 19/06/10, jhapk wrote:
Show 6 quoted lines
> I have a source code in a repository A. A has 1000s of files.  In A, I have
> added like 10 new files. For some reasons, I work on these 10 files in a
> different repository B. Is it somehow possible that I can make only these 10
> files pull and push easily from my repository B? There is nothing else
> common between A and B, so I am not sure if putting B as a remote and making
> a branch in A to track it is a feasible idea.

Having B as a remote looks like the most convenient choice if both repositories have the same history as you can then play with the usual git commands: diff, log, cherry-pick, etc.

Otherwise, you may either:
- make a new B as a Git fork of A so they share history (and fallback to
  my answer above) ;
or
- play with 'format-patch' and 'am' to export/import (maybe customised)
  commits.
-- 
Nicolas Sebrecht
Previous: jhapk
Message 2 of 2 in “Tracking selected files from different repository”
  1. jhapkJun 19, 2010
  2. Nicolas SebrechtJun 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.