gpt4 book ai didi

git svn rebase 索引文件打开失败 : Invalid argument

转载 作者:太空狗 更新时间:2023-10-29 12:46:08 25 4
gpt4 key购买 nike

第一次在windows上使用git-svn,git svn rebase显示错误:

致命:索引文件打开失败:参数无效

为什么会发生,我该如何解决?

谢谢。

最佳答案

如果您在 Windows 上使用 msysgit,则有一个 regression on msysgit1.8.4 for git-svn .
它似乎在 CMD 中执行时出现,而不是在 bash shell 中,因此您可以在 shell 中尝试相同的命令。

或者你可以 SubGit ,它是用于从 svn 转换到 git repo 的更完整和更强大的工具。 Listen to his author at GitMinutes #22 .


回归正在修复(目前——2013 年 10 月——在 'next' branch of the git repo 中) Bas Bossink确认 in the comments :

I just verified that it is fixed in git 1.8.5.2.msysgit.0

参见 commit 7fbd42 , 通过 jiangxin :

Tvangeste found that the "relative_path" function could not work properly on Windows if "in" and "prefix" have DOS drive prefix (such as "C:/windows"). ($gmane/234434)

E.g., When execute: test-path-utils, relative_path "C:/a/b" "D:/x/y" should return "C:/a/b", but returns "../../C:/a/b", which is wrong.

So make relative_path honor DOS drive prefix.

关于git svn rebase 索引文件打开失败 : Invalid argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19511044/

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