We are currently using TFS for Git and I am tasked with moving that over to Bitbucket this weekend.
The current remote repository contains many branches. What is the easiest way to migrate the entire repository? My current (lengthy and tedious) plan of attack is:
My big concern is with steps 1 & 2. With so many branches, and depending on my internet connection, just those steps could take me nearly all weekend. And even if it didn't, the tedium of repeating nearly the same command for every. single. branch. may well drive me insane.
Atlassian Support was very helpful and provided me with this link:
https://designhammer.com/blog/easily-migrate-git-repositories-bitbucket
Specifically, the commands I was looking for were:
git clone --bare
and
git push --mirror
But the link contains much more useful information for anyone attempting this sort of migration.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.