Converting svn to git, how to get the branches not to be just remote in the svn repo?

前端 未结 4 1665
太阳男子
太阳男子 2021-02-04 04:28

I\'m quite new to git and I\'m trying to move a svn repository to git. I followed the guide below so now I have a git repo on my server
http://pauldowman.com/2008/07/26/how-

4条回答
  •  甜味超标
    2021-02-04 05:00

    There is a fairly detailed explanation on how to do a pretty good SVN import that explains how to convert the branches properly here:

    https://git-scm.com/book/en/v1/Git-and-Other-Systems-Migrating-to-Git

    The short answer is to run this:

    $ cp -Rf .git/refs/remotes/* .git/refs/heads/
    $ rm -Rf .git/refs/remotes
    

    Hope that's helpful.

提交回复
热议问题