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:
- Checkout every branch individually.
- Pull every branch individually.
- git remote add origin git@bitbucket.org:....
- git push -u origin --all
- git push -u origin --tags
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.