We currently run our own Git server but we are seriously considering moving all our repos to Bitbucket. We have 300+ bare repos and we're wondering if there's a way to quickly migrate these over? Really we just need the code and all branches and tags but we don't want to spend hours doing it manually.
I think that your best bet would be to write a script to do this. You would create the repositories using the REST api: https://confluence.atlassian.com/display/BITBUCKET/repository+Resource#repositoryResource-POSTanewrepository and then push the data into them using git
Edit: I also found the following
curl --request POST --user username:password https://api.bitbucket.org/1.0/repositories --data name=myrepo --data scm=git
We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events