Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to mirror multiple branches from svn in Bitbucket using svn mirror

Manjunatha NS August 18, 2020

HI,

we have 3 branches in svn (trunk,6.1 and 6.1r) and we one repository(bb-test-repo) in Bitbucket and I wanted to mirror all above three branches from svn to bitbucket using svn mirror , can you please advise how to do this

2 answers

0 votes
Rudy Holtkamp
Community Champion
August 18, 2020

You can do this on your Bitbucket server.

Once done you can write a script which will do a 

git svn fetch
git push -u origin --all

 Every 10 minutes.

Alternatively you can take a look at this great app: https://marketplace.atlassian.com/apps/1211086/svn-mirror-for-bitbucket-server?hosting=datacenter&tab=overview

Which will take away a lot of hassle.

0 votes
Rudy Holtkamp
Community Champion
August 18, 2020

@Manjunatha NS 

There are a lot of SVN to Git migration examples available. For example this one: https://patrickbougie.com/articles/2013/03/18/convert-svn-to-git-repository/

If these are your only three branches you would have enough of the above guide. If you have a lot of revisions the migrations can take up serious time, so be aware.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events