git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: connecting existing local git repository to svn

From
Ittay Dror <ittay.dror@gmail.com>
Date
Jan 27, 2009, 10:41 UTC
Message-ID
<497EE4E8.8070705@gmail.com>
In-Reply-To
<497EE386.5050805@drmicha.warpmail.net>
Michael J Gruber wrote:
Show 23 quoted lines
> 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
Show 5 quoted lines
> Do you want to discard your existing git history completely?
>
> Cheers,
> Michael
>   
Previous: Michael J GruberNext: Sverre Rabbelier
Message 3 of 7 in “connecting existing local git repository to svn”
  1. Ittay DrorJan 27, 2009
  2. Michael J GruberJan 27, 2009
  3. Ittay DrorJan 27, 2009
  4. Sverre RabbelierJan 27, 2009
  5. Ittay DrorJan 27, 2009
  6. Michael J GruberJan 27, 2009
  7. Ittay DrorJan 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.