git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Imran M Yousuf" <imyousuf@gmail.com>
To: "Alf Mikula" <amikula@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Migrating a git repository to subversion
Date: Fri, 16 May 2008 10:59:22 +0600	[thread overview]
Message-ID: <7bfdc29a0805152159l52a300e4rc1da3fe61db60fdc@mail.gmail.com> (raw)
In-Reply-To: <42dc968d0805151608q2ed89fc8madcd8d341a4ed1df@mail.gmail.com>

On Fri, May 16, 2008 at 5:08 AM, Alf Mikula <amikula@gmail.com> wrote:
> I'm a relatively new (2 weeks) user of Git, and so far I really love
>  it, and I want to educate my co-workers about it.
>
>  Having said that, I want to demonstrate git's git<--->svn
>  capabilities, and currently everybody here has and understands
>  Subversion.  So, I want to initialize a Subversion repository with my
>  git history from my local git repository.  Here's what I tried:
>
>  1. Create a new, empty subversion project with trunk/tags/branches subdirs.
>  2. git svn clone http://myhost.com/path/to/project --stdlayout

I would just create another local branch and merge the tracking branch
into it, then rebase the branch with the master branch and then do the
svn dcommit. If the 'git svn clone' 'd repo is bare I think it should
commit the individual commits.

Best regards,

Imran

>  3. git pull ../git_project
>  4. git svn dcommit
>
>
>  This put all my files into Subversion, but under a single commit.  Is
>  there a step I'm missing that would allow git to commit all my
>  individual git commits to the Subversion repository?  I've done a
>  bunch of searches, but all the docs seem to focus on cloning an
>  existing svn repository, as opposed to exporting git repositories to
>  Subversion.
>
>  Thanks in advance,
>
>  -Alf
>  --
>  To unsubscribe from this list: send the line "unsubscribe git" in
>  the body of a message to majordomo@vger.kernel.org
>  More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Imran M Yousuf
Entrepreneur & Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran@smartitengineering.com
Mobile: +880-1711402557

      parent reply	other threads:[~2008-05-16  5:00 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
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 [this message]

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=7bfdc29a0805152159l52a300e4rc1da3fe61db60fdc@mail.gmail.com \
    --to=imyousuf@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).