且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将git存储库与所有分支从bitbucket移动到github?

更新时间:2023-02-25 20:23:34

You can refer to the GitHub page "Duplicating a repository"

It uses:

That would give:

git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git
# Make a bare mirrored clone of the repository

cd repository-to-mirror.git
git remote set-url --push origin https://github.com/exampleuser/mirrored
# Set the push location to your mirror

git push --mirror

As Noted in the comments by L S: