I am currently evaluating the settings for the hosting services of the Git repository for my team. I partly relate to GitHub, but there may be reasons why we would like (or, in addition) to use Atlassian Stash.
With Git, is it possible to copy the repository and its history from the hosting service to another? Are there any problems with this? If we go down one provider and decide that we need to switch later, is there something we will lose?
I'm interested in a general answer about this for Git, but are there also any likely data problems (not necessarily the history of the original version) stored as part of this that will be lost when trying to migrate directly between GitHub and atlas stacks?
Thank,
== update (v2) ==
Just to continue, I did this successfully from the clone I had from Stash, and click on Github using:
git clone --mirror ssh://git@mystashurl.com:8080/Stash/Project.git MyGithubProject
cd MyGithubProject
git remote set-url origin git@github.com:MyGithubOrg/MyGithubProject.git
git push --mirror origin
And he kept all the expected history, including branches.
source
share