From: Ittay Dror <ittay.dror@gmail.com>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: git@vger.kernel.org
Subject: Re: connecting existing local git repository to svn
Date: Tue, 27 Jan 2009 12:41:44 +0200 [thread overview]
Message-ID: <497EE4E8.8070705@gmail.com> (raw)
In-Reply-To: <497EE386.5050805@drmicha.warpmail.net>
Michael J Gruber wrote:
> Ittay Dror venit, vidit, dixit 01/27/09 05:10:
>
>> Hi,
>>
>>
>> I'd like to create a branch in a subversion repository so that I can
>> work with git-svn on it.
>>
>>
>> My git repository is already with a history, that I don't want to
>> replicate to subversion, I want to start with subversion having just the
>> latest revision and then continue from there normally (git svn
>> dcommit/rebase).
>>
>>
>> How can I do that?
>>
>
> Create the svn branch (with svn) and "git svn clone". Pull in your git
> branch under a new name (if that is what you want).
> Now, you can e.g. "git merge -s theirs" your other git branch into
> master, git svn rebase and dcommit. Untested, but comes with best wishes ;)
>
but wouldn't that create a revision in svn for each commit in git?
what i want is something like:
git: ----v1----v2----v3--v4---v5
svn: \---v4--v5
so the svn history starts from v3, but the git history remains unchanged.
ittay
> Do you want to discard your existing git history completely?
>
> Cheers,
> Michael
>
next prev parent reply other threads:[~2009-01-27 10:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 4:10 connecting existing local git repository to svn Ittay Dror
2009-01-27 10:35 ` Michael J Gruber
2009-01-27 10:41 ` Ittay Dror [this message]
2009-01-27 12:16 ` Sverre Rabbelier
2009-01-27 12:48 ` Ittay Dror
2009-01-27 13:02 ` Michael J Gruber
2009-01-28 5:26 ` Ittay Dror
-- strict thread matches above, loose matches on Subject: below --
2009-01-26 19:29 Ittay Dror
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=497EE4E8.8070705@gmail.com \
--to=ittay.dror@gmail.com \
--cc=git@drmicha.warpmail.net \
--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).