git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
To: jhapk <pradeep.kumar.jha@gmail.com>
Cc: git@vger.kernel.org, Nicolas Sebrecht <nicolas.s.dev@gmx.fr>
Subject: Re: Tracking selected files from different repository
Date: Sun, 20 Jun 2010 10:22:17 +0200	[thread overview]
Message-ID: <20100620082217.GA13060@vidovic> (raw)
In-Reply-To: <1276971140188-5199181.post@n2.nabble.com>

The 19/06/10, jhapk wrote:

> 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

      reply	other threads:[~2010-06-20  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19 18:12 Tracking selected files from different repository jhapk
2010-06-20  8:22 ` Nicolas Sebrecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100620082217.GA13060@vidovic \
    --to=nicolas.s.dev@gmx.fr \
    --cc=git@vger.kernel.org \
    --cc=pradeep.kumar.jha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).