Body
What you need to do
- To begin with, you will need to choose and register with an alternative Git service (like GitHub, GitLab, etc.) in case you'd like to push a copy of code to another remote.
- If you only want to clone the repositories locally on your machine, you can ignore the other steps in this guide.
- This process would involve the following steps-
- Clone the repository locally.
- Create a new repository on the destination platform.
- Update repository configuration.
- Push to the new repository.
- Verify migration and update places where You've been using this repository.
- Here are the example commands you can follow to accomplish the aforementioned steps.
git clone <your-git-repo-uri>
cd your-repo
# Create the repository in the new location using the Service Website
git remote rename origin old-origin
git remote add origin <your-new-git-remote-repo-uri>
git push
--set-upstream origin --all
git push
--set-upstream origin --tags