我正在使用 git-tfs 克隆 TFS 存储库,这是我过去能够成功完成的事情。但是当我运行命令时使用当前版本,就像这样......
git tfs clone http://NameOfOurTfsServer:8080/ $/NameOfMyProject -d
...我收到错误代码 128,例如:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Sep.Git.Tfs.Core.GitCommandException: Command exited with error code: 128 at Sep.Git.Tfs.Core.GitHelpers.Close(Process process) in c:\Users\matt\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 205 at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClass8.<CommandOutputPipe>b__7() in c:\Users\matt\dev\github\git-tfs\GitTfs\Core\GitHelpers.cs:line 59 [etc.]
这是在 git-tfs 14.0 上。我已经尝试了几个以前版本的 git-tfs,但我在每个版本上都遇到了相同或相似的错误。
有没有人遇到过这个?你知道解决办法吗?
最佳答案
我遇到过这样的问题,尤其是当 TFS 服务器断开连接时。我的解决方法 是删除该文件夹并再次运行相同的命令。
你可以试试quick-clone而不是 clone ,因为它会更快完成。我假设您不需要完整的历史记录。
关于git-tfs 克隆失败,错误代码为 128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11056453/