* Tracking selected files from different repository
@ 2010-06-19 18:12 jhapk
2010-06-20 8:22 ` Nicolas Sebrecht
0 siblings, 1 reply; 2+ messages in thread
From: jhapk @ 2010-06-19 18:12 UTC (permalink / raw)
To: git
Hi,
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.
Thanks
Pradeep
--
View this message in context: http://git.661346.n2.nabble.com/Tracking-selected-files-from-different-repository-tp5199181p5199181.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tracking selected files from different repository
2010-06-19 18:12 Tracking selected files from different repository jhapk
@ 2010-06-20 8:22 ` Nicolas Sebrecht
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Sebrecht @ 2010-06-20 8:22 UTC (permalink / raw)
To: jhapk; +Cc: git, Nicolas Sebrecht
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-20 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-19 18:12 Tracking selected files from different repository jhapk
2010-06-20 8:22 ` Nicolas Sebrecht
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).