git - 使用快速导出将 Mercurial (hg) 迁移到 gitlab
问题描述
我在 Debian (7,8,9,10) 上有许多需要迁移到 gitlab 的 mercurial 存储库。我试图在原始 hg repo 所在的同一文件夹中执行此操作。
cd new-git-repo
git init
../../fast-export/hg-fast-export.sh -r . --force
git remote add origin https://github.com/xxx/new-git-repo
git checkout HEAD
但是,这会导致大量未跟踪的文件(所有目录/文件)和已删除的文件。git checkout HEAD 导致错误
error: The following untracked working tree files would be overwritten by checkout:
.hgignore
Makefile
config
configure/CONFIG
可以就地完成快速导出吗?
非常感谢澄清。
解决方案
推荐阅读
- r - 将数据框和数据框列表组合成一维数据框列表,R
- latex - 在将乳胶输入 Wolfram 时,我能否像在 Symbolab 中一样查看实时变化的方程?
- python - 如何使用python链接word文档中的内容控制框
- firebase-cloud-messaging - 我可以使用 fcm 在 web 中推送资产版本吗
- firebase - Azure devops 将 iOS 应用程序部署到 Firebase 应用程序分发
- java - 在 Java 中创建表后创建 DynamoDB 全局二级索引
- javascript - 出现错误:Route.get() 需要一个回调函数,但在 authMiddleware 中添加新函数时得到了一个 [object Object]
- amazon-web-services - AWS CloudWatch 日志见解
- flutter - 颤振:如何在登录表单中自动填写密码
- amazon-web-services - 爬虫未创建架构