Skip to content

Migrate your Repository Git

Posted on:February 14, 2016 at 03:22 PM

Hi Guys!

Here is a simple tutorial to migrate your repository to other git server.

First Step

You need to create a “mirror” repository

git clone --bare <URL>

Second Step

Update your “origin” with new URL

git remote set-url origin <NEW URL>

Third Step

Make a push command

git push --mirror

Conclusion

Is there any problems using this method?

Yes, there is. It doesn’t migrate the issues and pull requests from Github, but your source and branches will migrate successfully!And include your suggestions in comments!

Thank you!