From: "Avery Pennarun" <apenwarr@gmail.com>
To: "Alf Mikula" <amikula@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Migrating a git repository to subversion
Date: Thu, 15 May 2008 19:19:13 -0400 [thread overview]
Message-ID: <32541b130805151619y7dcb3812i1440ebbb0def98ad@mail.gmail.com> (raw)
In-Reply-To: <42dc968d0805151608q2ed89fc8madcd8d341a4ed1df@mail.gmail.com>
On 5/15/08, Alf Mikula <amikula@gmail.com> wrote:
> 1. Create a new, empty subversion project with trunk/tags/branches subdirs.
> 2. git svn clone http://myhost.com/path/to/project --stdlayout
> 3. git pull ../git_project
> 4. git svn dcommit
>
> This put all my files into Subversion, but under a single commit. [...]
Step 3 created a "merge commit", which connected the (presumably, but
not necessarily, empty) repository from step 2 to the other one in
step 3. git-svn doesn't know how to break apart a merge into its
parts (mostly because it's theoretically impossible to do in the
general case :)) so it just makes a single svn commit.
The way people usually deal with this when using git-svn is they use
"git rebase" to simplify their history and eliminate the need for
merge commits. This makes git-svn much happier, but unfortunately
makes future git merging a bit more complicated.
Anyway, to answer your question: add a new step 3.5 that's something like:
git rebase WHATEVER
Where WHATEVER is the name of the last commit git-svn created in step 2.
Have fun,
Avery
next prev parent reply other threads:[~2008-05-15 23:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-15 23:08 Migrating a git repository to subversion Alf Mikula
2008-05-15 23:19 ` Avery Pennarun [this message]
2008-05-15 23:47 ` Björn Steinbrink
2008-05-16 3:01 ` Linus Torvalds
2008-05-16 3:53 ` Martin Langhoff
2008-05-16 17:45 ` Alf Mikula
2008-05-16 4:59 ` Imran M Yousuf
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=32541b130805151619y7dcb3812i1440ebbb0def98ad@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=amikula@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).