git - 如何将 Bitbucket 存储库迁移到 Github?
问题描述
我想将包含多个分支的旧 Bitbucket 存储库迁移到 Github。为此,我遵循了以下描述:
# add remote github repository
$ git remote add upstream https://github.com:USER/PROJECT.git
# push all branches <-- doesn't work
$ git push upstream master
$ git push --tags upstream
只有master
分支被推送到 Github 存储库(也适用于git push --all upstream
)。
为了将所有分支推送到 Github,我需要checkout
单独对它们执行git push upstream
.
如果没有第一个分支,我如何将所有分支推送到 Github checkout
?
解决方案
推荐阅读
- ruby - splat 运算符在应用于范围表达式时如何理解?
- google-cloud-platform - Cloud Tasks 条件执行
- maven - 如何允许结果
在 Kotlin 中作为返回类型? - python - 如何在python的字符串中添加空格作为参数?
- java - Activiti APS 的 Java 和 MySQL 内存配置问题
- amazon-web-services - 在 CN 之外顺利使用 AWS CN
- ios - 顶部的自定义 TabBar
- java - 我可以将 JWT 授权从 spring RestController 传递给外部后端 API
- php - 如何在消息中显示参数?laravel 验证器
- python-sphinx - 在 sphinx 中插入动态 .rst 块