“无法打开数据库文件"尝试将化石存储库导出到git时 [英] "Unable to open database file" when trying to export a fossil repo to git

查看:55
本文介绍了“无法打开数据库文件"尝试将化石存储库导出到git时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到一个 fossil.exe:[< repo path>]:当我尝试将 fossil 存储库导出到时,无法打开数据库文件Windows上的git.

I'm getting a fossil.exe: [<repo path>]: unable to open database file when I'm trying to export a fossil repo to git on Windows.

这是我执行的步骤:

  1. git init新仓库
  2. cd new-repo
  3. fossil.exe导出--git"fossil_repo_path" |git fast-import

推荐答案

我没有弄清楚是什么原因引起的,但是我找到了一种解决方法:

I didn't figure out what was causing the problem, but I found a workaround:

  1. git init git-repo
  2. cd化石仓库
  3. 化石导出--git>git.txt
  4. git.txt 移动到 git-repo
  5. type/cat git.txt |git fast-import
  6. git checkout trunk
  7. Voilà

这篇关于“无法打开数据库文件"尝试将化石存储库导出到git时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆