How do I migrate an SVN repository with history to a new Git repository?

前端 未结 30 1667
离开以前
离开以前 2020-11-22 02:51

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:

SVN repository in: <

30条回答
  •  逝去的感伤
    2020-11-22 03:57

    Magic:

    $ git svn clone http://svn/repo/here/trunk
    

    Git and SVN operate very differently. You need to learn Git, and if you want to track changes from SVN upstream, you need to learn git-svn. The git-svn main page has a good examples section:

    $ git svn --help
    

提交回复
热议问题