gpt4 book ai didi

git - 从化石导出到 git

转载 作者:太空狗 更新时间:2023-10-29 13:51:35 27 4
gpt4 key购买 nike

我一直在尝试使用 instructions found here 将我的化石仓库导出到 git 中.我看过this question here但它没有回答我的问题。

我遵循了 https://www.fossil-scm.org/xfer/doc/tip/www/inout.wiki 上的所有指示但我似乎无法让它工作。

我做了以下事情:

git init new-repo
cd new-repo
fossil export --git ../repo.fossil | git fast-import

我得到统计数据:

git-fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects: 10000
Total objects: 8831 ( 8 duplicates )
blobs : 5578 ( 0 duplicates 3374 deltas of 5224 attempts)
trees : 2509 ( 8 duplicates 1419 deltas of 2378 attempts)
commits: 744 ( 0 duplicates 0 deltas of 0 attempts)
tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
Total branches: 1 ( 1 loads )
marks: 1048576 ( 6322 unique )
atoms: 4253
Memory total: 2704 KiB
pools: 2235 KiB
objects: 468 KiB
---------------------------------------------------------------------
pack_report: getpagesize() = 4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit = 8589934592
pack_report: pack_used_ctr = 2936
pack_report: pack_mmap_calls = 744
pack_report: pack_open_windows = 1 / 1
pack_report: pack_mapped = 207355128 / 207355128
---------------------------------------------------------------------

我没有发现任何问题,但我没有可用的存储库。我错过了一步吗?我没有在化石文档中找到更多信息。提前致谢。

编辑:作为对以下问题的回答,我尝试使用 -R 和不使用 -R 导出命令。

最佳答案

您需要检查新 Git 存储库的 trunk 分支。默认情况下,git init 命令创建并 checkout 一个名为 master 的空分支。但是 Fossil 使用 trunk 作为它的主要分支。

所以在 git fast-import 之后调用 git checkout trunk 你将能够看到工作目录中的所有文件。

关于git - 从化石导出到 git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27518581/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com