git-tfs 克隆失败,错误代码为 128

标签 git tfs git-tfs

我正在使用 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/

相关文章:

git - (git tfs fetch) TF400324 : Team Foundation services are not available, 底层连接被关闭

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

git - 将具有文件重命名和编辑的 git 提交分成两个提交

git - 如何将一个分支 merge 到 master 但继续在该分支上工作?

linux - git命令应该直接在工作目录下运行吗?

c# - 无法从 TFS 获取 VersionControlServer 服务

git - 同步 TFS 和 GIT

visual-studio - 导入 Visual Studio TFS 工作区

git - Atlassian/BitBucket Sourcetree SSH 公钥被拒绝

git-tfs - 使用 git-tfs fetch 获取最新信息会导致合并冲突