From: Aneurin Price <aneurin.price@gmail.com>
To: git@vger.kernel.org
Subject: Transplant branch from one repo to another
Date: Tue, 16 Jun 2009 22:30:34 +0100 [thread overview]
Message-ID: <501db8660906161430o25a0c18aw41758390dc171702@mail.gmail.com> (raw)
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
reply other threads:[~2009-06-16 21:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=501db8660906161430o25a0c18aw41758390dc171702@mail.gmail.com \
--to=aneurin.price@gmail.com \
--cc=git@vger.kernel.org \
/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).