Home  >  Q&A  >  body text

java - How to migrate git project to SVN? Which god can give me some advice?

How to migrate git project to SVN? Who can give me some advice

迷茫迷茫2686 days ago896

reply all(1)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-12 09:27:13

    1. cd /path/to/git/localrepo
    2. svn mkdir --parents protocol:///path/to/repo/PROJECT/trunk -m "Importing git repo"
    3. git svn init protocol:///path/to/repo/PROJECT -s
    4. git svn fetch
    5. git rebase origin/trunk
    5.1.  git status
    5.2.  git add (conflicted-files)
    5.3.  git rebase --continue
    5.4.  (repeat 5.1.)
    6. git svn dcommit
    

    For specific details, please refer to https://stackoverflow.com/que...

    reply
    0
  • Cancelreply