我有一个扩散存储库,我想将其导入到 github 并包含完整的历史记录。我尝试了一些出现在搜索中的选项。也许有人可以帮助最简单的选择。提前谢谢了。
问问题
31 次
1 回答
1
通常,最简单的选择是:
- 在 GitHub 上创建一个(完全)空的存储库(没有 README,什么都没有)
- 转到您的本地存储库
- 将新的 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
于 2020-06-06T18:28:56.813 回答