Sometimes you have the need to move a repository from one server or provider to another. This is what I´m going to do. Which is simple.
On your terminal
- First we create a bare clone of our origin repository.
git clone --bare https://gitoriginalprovider.com/pathto/old-repository.git
Create a repository in the destination server or provider and once done copy the URL.
Le'ts move to our cloned repository and push to the new destination.
git push --mirror email@example.com:victoryoalli/new-repository.git
- Finally let's delete the old-repository folder from our computer.
rm -Rf old-repository
Now we have migrated or repository to a new provi