From: Josef Wolf <jw@raven.inka.de>
To: git@vger.kernel.org
Subject: How to move subdirectories from one svn repos to another.
Date: Sat, 31 Jan 2009 13:33:36 +0100 [thread overview]
Message-ID: <20090131123336.GA1702@raven.wolf.lan> (raw)
Hello,
I would like to move a complete subdirectory with all its history from
one svn repository to another.
For this, I have created a git repository with the two subversion
repositories as remotes:
REPOSROOT=https://foo.bar.com/repos
mkdir -p migrate
cd migrate
git svn init --stdlayout $REPOSROOT/my-repos
for i in my-repos their-repos; do
git config svn-remote.$i.url $REPOSROOT/$i
git config svn-remote.$i.fetch trunk:refs/remotes/$i/trunk
git config svn-remote.$i.branches branches/*:refs/remotes/$i/*
git config svn-remote.$i.tags tags/*:refs/remotes/$i/tags/*
git svn fetch -R $i
git checkout -b $i $i/trunk
done
git gc
Now I would like to move one directory (call it bar) from my-repos
to their-repos. Problem is: there are thousands of changesets in
this directory. So I got somewhat stuck (I am new to git). Do I
have to cherry-pick every changeset separately? Or is there some
way to merge all the changesets touching this specific directory?
Any hints?
reply other threads:[~2009-01-31 13:04 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=20090131123336.GA1702@raven.wolf.lan \
--to=jw@raven.inka.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.