git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Transplant branch from one repo to another
@ 2009-06-16 21:30 Aneurin Price
  0 siblings, 0 replies; only message in thread
From: Aneurin Price @ 2009-06-16 21:30 UTC (permalink / raw)
  To: git

Hello all,

I have a repository cloned from SVN using 'git svn clone http://servername/path
-T trunk -b branches -t tags', or thereabouts, and I've since realised that I
would have been better off with 'git svn clone
http://servername/path/trunk/subdir', as I don't really care about any other
branches, or about the contents of the svn repository outside of 'subdir'.

I have one branch from trunk in which I've been working, which includes one
merge from trunk. I'm interested in how I might be able to get the content of
that branch and transplant it onto the new svn clone, starting at the equivalent
parent commit (ie. the same svn revision). The merge was only a few commits away
from HEAD, so I can manually redo that last part if it complicates things too
much.

I've been thinking about something involving 'filter-branch
--subdirectory-filter' followed by a fast-export on the source, and then a
fast-import on the destination, but I'm not sure I'm going about this the right
way and would appreciate any advice anyone can give me.

So, does anybody have any suggestions for how I should do this?
Thank you for your time,
Nye

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-16 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16 21:30 Transplant branch from one repo to another Aneurin Price

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).