简体   繁体   English

从git迁移到tfs时出错:路径开头为“ $”

[英]Error migrating from git to tfs: '$' at the beginning of a path

I've been trying to use git-tf to migrate a fairly large GIT repository (14000 revisions) to TFS. 我一直在尝试使用git-tf将相当大的GIT存储库(14000版)迁移到TFS。 The GIT repository is a temporary one, the original repository is in Subversion if that matters. GIT存储库是一个临时存储库,如果重要的话,原始存储库位于Subversion中。

During the Migration one of the revisions caused an error: 在迁移期间,其中一个修订引起了错误:

git-tf: TF10122: The path '$/TEWT/FXX/$NX001.TXT' contains a '$' at the beginning of a path component. git-tf:TF10122:路径“ $ / TEWT / FXX / $ NX001.TXT”在路径组件的开头包含一个“ $”。 Remove the '$' and try again. 删除“ $”,然后重试。

This Revision was a delete of the Folder FXX and pretty early in the overall history (9th oldest Revision). 此修订版是对文件夹FXX的删除,并且在整个历史记录中都处于早期(第9最早的修订版)。 How would i go about "Fixing" this Revision so TFS accepts it? 我将如何修订此修订版,以便TFS接受?

This is caused by the file name "$NX001.TXT". 这是由文件名“ $ NX001.TXT”引起的。 TFS does not support the filename start with "$". TFS不支持以“ $”开头的文件名。 And since you mentioned that the Folder FXX had been deleted but you still get this error, I suspect that you are running the git-tf with "--deep" option. 并且由于您提到文件夹FXX已被删除,但仍然出现此错误,因此我怀疑您正在使用“ --deep”选项运行git-tf。 If so, there is no way to skip this error as I know. 如果是这样,据我所知,没有办法跳过此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM