如何将扩散存储库导入到 github 并具有完整的历史记录?
How to import diffusion repository to github with complete history?
我有一个扩散存储库,我想将其导入到 github 并具有完整的历史记录。我尝试了搜索中出现的几个选项。也许有人可以帮助最简单的选择。提前谢谢了。
通常,最简单的选择是:
- 在 GitHub 上创建一个(完全)空的存储库(没有自述文件,什么都没有)
- 转到您的本地存储库
- 将新 GitHub 空存储库的 URL 添加为来源
- 用镜像推送
即:
cd /path/to/local/repo
git remote add origin https://github.com/<me>/<myrepo>
# if origin already existed, change it with
git remote set-url origin https://github.com/<me>/<myrepo>
git push --mirror origin
我有一个扩散存储库,我想将其导入到 github 并具有完整的历史记录。我尝试了搜索中出现的几个选项。也许有人可以帮助最简单的选择。提前谢谢了。
通常,最简单的选择是:
- 在 GitHub 上创建一个(完全)空的存储库(没有自述文件,什么都没有)
- 转到您的本地存储库
- 将新 GitHub 空存储库的 URL 添加为来源
- 用镜像推送
即:
cd /path/to/local/repo
git remote add origin https://github.com/<me>/<myrepo>
# if origin already existed, change it with
git remote set-url origin https://github.com/<me>/<myrepo>
git push --mirror origin