I have some git repositories on HiDrive and I'd like to move them to BitBucket. However, the Bitbucket migration process can't cope with addresses like
That's right, no protocol header.
I am able to move the repo by creating an empty one on Bitbucket, changing the URL in the git config and a simple push. However, it's a bit cumbersome when there are several repos waiting for a migration.
I've just resorted to scripting (bash/cmd depending on linux/windows) in this situation; make a function that does the clone, the remote create, and then push it to bitbucket (no need to change the url in the git config). Then just feed your function a list of repos and let your script run.
Pro tip: Make sure you use --mirror, it pulls in extra attributes tha even --bare doesn't. e.g.
git clone --mirror http://oldserver/repo.git cd repo.git git push --mirror ssh://new-bitbucket/repo.git
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs