Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VS2019和Github:&x27;确保核心工作树';不是有效的子模块--helper子命令_Git_Visual Studio_Github_Clone_Visual Studio 2019 - Fatal编程技术网

VS2019和Github:&x27;确保核心工作树';不是有效的子模块--helper子命令

VS2019和Github:&x27;确保核心工作树';不是有效的子模块--helper子命令,git,visual-studio,github,clone,visual-studio-2019,Git,Visual Studio,Github,Clone,Visual Studio 2019,从VS2019开始,我尝试获得: 收到: 克隆远程存储库时遇到错误:Git失败,出现致命错误。 “确保核心工作树”不是有效的子模块--helper子命令 为什么? ========================================================================================= 另外,作为补充信息: 操作:开始克隆 。。。 远程:压缩对象:100%(79/79),完成。 远程:总计100061(增量40),重复使用32(增量23),

从VS2019开始,我尝试获得:

收到:

克隆远程存储库时遇到错误:Git失败,出现致命错误。 “确保核心工作树”不是有效的子模块--helper子命令

为什么?

========================================================================================= 另外,作为补充信息:

操作:开始克隆

。。。 远程:压缩对象:100%(79/79),完成。
远程:总计100061(增量40),重复使用32(增量23),包重复使用99959
c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第7行:basename:未找到命令 c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第7行:sed:未找到命令 c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第19行:.:Git sh安装程序:未找到文件 克隆远程存储库时遇到错误:CloneCommand.ExecuteClone

解决方案:

添加了Git的所有bin文件夹的路径。ie:C:\ProgramFiles(x86)\Git\bin。。。加上所有其他Git bin文件夹(如果有)

操作:开始克隆

。。。 远程:总计100061(增量40),重复使用32(增量23),包重复使用99959
c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第19行::Git sh安装程序:未找到文件 克隆远程存储库时遇到错误:CloneCommand.ExecuteClone

解决方案:

Git的版本太旧了。我安装2.17.1版是为了测试,但您最好安装最新版本

操作:开始克隆

。。。 远程:总计100061(增量40),重复使用32(增量23),包重复使用99959
c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第7行:basename:未找到命令 c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第7行:未找到sed:命令 c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第19行::Git sh安装程序:未找到文件 克隆远程存储库时遇到错误:CloneCommand.ExecuteClone

解决方案:

添加路径: C:\ProgramFiles\Git\bin C:\ProgramFiles\Git\usr\bin C:\ProgramFiles\Git\mingw64\bin

操作:开始克隆

。。。 远程:压缩对象:100%(79/79),完成。
远程:总计100061(增量40),重复使用32(增量23),包重复使用99959
c:/program files(x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/Git core\Git子模块:第19行::Git sh安装程序:未找到文件 克隆远程存储库时遇到错误:CloneCommand.ExecuteClone

解决方案:

添加的路径:C:\Program Files\Git\mingw64\libexec\Git core

开始克隆

。。。 远程:总计798(增量0),重复使用1(增量0),包重复使用795
克隆远程存储库时遇到错误:Git失败,出现致命错误。 “确保-core-worktree”不是有效的子模块--helper子命令

""

解决方案:

我卸载了:2.17.1,安装了最新版本(2019-12-03):2.24.0.2(选择调整路径以“使用Git和可选Unix工具…”)

已成功克隆存储库。。。最后!!!:-)

“确保核心工作树”是子模块--helper的子命令。 它只出现在git的2.20版及更高版本中