What is the correct way to convert SVN remote branches and tags into local Git branches/tags during SVN to Git migration

后端 未结 5 642
庸人自扰
庸人自扰 2020-12-30 15:00

What is the correct way to make the remote branches/tags that exist after a git-svn init/git-svn fetch into local Git branches/tags before pushing to my remote Git repo and

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 15:36

    To do exactly that you want just use SubGit project. You can install it into your SVN repository. So that a linked Git repository is created (with SVN tags translated to Git tags, svn:ignores to .gitignore and so on). That Git repository is kept in sync with the SVN repository: when you push to a Git repository, this changes is translated to the SVN repository, and vice versa.

    If you need client-only solution, I would recommend you to use SmartGit. It also preserves SVN concepts in Git repository.

    And what I wouldn't recommend you to use it git-svn.

提交回复
热议问题