It documented on Atlassian Docs:
It is significat to make Bare clone, not simple Copy clone. Because if you make not a Bare mirror, you get no remote branches. And push --all will not work fine.
I used follow commands to completelly migrate from one Git to another, this will copy anything:
git clone --bare firstname.lastname@example.org:/login/myrepo.git cd myrepo.git git push --mirror email@example.com:/project/myrepo.git cd .. rm -rf myrepo.git
In this solution you no need to add remote.
I guess this depends on how many repositories you have to migrate? If we're talking 5-10, then frankly I would just do it manually for now.
If you have more thant that it might be worth thinking about writing a script (which we could definitely help with). You could use both the REST endpoints to query the Bitbucket repositories and re-create them in Stash.
Not specifically. It's really just the normal Stash documentation you might want to take a look at:
For each repository in Bitbucket you will want to clone the repository to a machine, create a matching repository in Stash and then push all the branches/tags. Something like:
git clone firstname.lastname@example.org:project/repo-name.git
git remote add stash ssh://git@server:7999/PROJECT/repo-name.git git push --all stash && git push --tags stash
You may then also want/need to setup user permissions on your projects as appropriate to your organization.
I hope this helps?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...
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