gpt4 book ai didi

具有部分历史记录的 git tfs 克隆

转载 作者:太空狗 更新时间:2023-10-29 13:33:39 24 4
gpt4 key购买 nike

我正在尝试将 TFS 存储库迁移到 git,但我遇到了问题。

查看 TFS 中这个特定存储库的历史,它看起来好像父存储库被复制到一个新的 TFS 存储库中,然后在稍后的时间将父存储库无基础地 merge 到它(或类似的东西)中。

当我运行“git tfs clone”命令时出现错误:

git-tfs was unable to find the root changeset (ie the last common commit) between the branch '$/x' and its parent branch '$/y'...

是否可以使用 git tfs clone 限制历史记录?我知道我可以使用快速克隆,但这只会给我最后一次提交。理想情况下,我想返回到特定的变更集,或者排除没有共同父级的无基础 merge 变更集...

干杯!

最佳答案

如果你想从变更集 12345 及之后克隆,你可以先使用带有标志 -c12345--changeset=12345< 的quick-clone/。然后您可以使用 git tfs fetchgit tfs pull 获取从那一点开始的剩余历史记录。

关于具有部分历史记录的 git tfs 克隆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29222954/

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