Re: connecting existing local git repository to svn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux