I need to migrate a repository from SVN to GIT(Bitbiucket) along with commit history and branches. Read and explored few posts but getting stuck when tried the below commands from the following url: https://davidzych.com/migrating-from-svn-to-git/
Step 1) git svn init http://url.to.svn/ --prefix svn
Step 2) git svn init http://url.to.svn/ -T Trunk -B Branches -t Tags
Step 3) git config svn.authorsfile ../authors.txt
Step 4) git svn fetch [Get stuck at this step and it doesn't move forward after a specific revision]
Step 5) git branch -a
Step 6) git tag -a -m "Migrating SVN tag" tag-name refs/tags/tag-name
Step 7) git remote add newrepo https://url.to.git/repo.git
Step 8) git push --all newrepo and git push --tags newrepo
I have also tried the steps from the below url. https://docs.microsoft.com/en-us/azure/devops/repos/git/create-new-repo?view=azure-devops
Please do suggest if there is any other better way/steps to do this migration.
Bitbucket 有一个特殊的插件,称为 SVN Mirror。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.