Think before you speak, read before you think.

将 bitbucket 迁移到 github

by

in

先装 bitbucket 中的 origin 命名成 bitbucket

git remote rename origin bitbucket

在 github 添加 origin

git remote add origin https://github.com/username/myproject.git

将 master 发上去

git push origin master

将 bitbucket 删掉

git remote rm bitbucket

在这里操作可以查看 .git/config 中的变化

http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *