子模块更新失败,最新更新

问题描述 投票:0回答:2

自从我将TortoiseGit更新到最新版本2.7.0.0后,子模块更新现在失败并返回以下内容。

git.exe submodule update --progress --init --recursive --force --merge --remote -- "src/myproject"

usage: git submodule [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
or: git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
or: git submodule [--quiet] init [--] [<path>...]
or: git submodule [--quiet] deinit [-f|--force] [--] <path>...
or: git submodule [--quiet] update [--init] [--remote] [-N|--no-fetch] [-f|--force] [--checkout|--merge|--rebase] [--reference <repository>] [--recursive] [--] [<path>...]
or: git submodule [--quiet] summary [--cached|--files] [--summary-limit <n>] [commit] [--] [<path>...]
or: git submodule [--quiet] foreach [--recursive] <command>
or: git submodule [--quiet] sync [--recursive] [--] [<path>...]


git did not exit cleanly (exit code 1) (827 ms @ 9/13/2018 11:05:54 AM)

我不使用命令行,我使用TortoiseGit上下文菜单。

我总是可以在这里进入Git Bash并输入以下命令,但我想知道为什么从上下文菜单中删除它。

git submodule update --init --remote -f --recursive Src
tortoisegit
2个回答
2
投票

cli命令行有一点不同:在TortoiseGit中你已经检查了merge选项,在Git bash你还没有。如果您在Git配置中设置了checkoutrebase,则可能会导致不兼容。

也许这与:https://tortoisegit.org/issue/3218有关


0
投票

感谢MrTux

根据您发布的链接,我最后发表了评论:

Sven Strickroth @mrtux·1个月前所有者您是否检查过TortoiseGit使用Git的“正确”版本?也许您安装了另一个旧版本,无法处理配置值。

答案是将我的GIT版本2.08更新到最新的2.19。为此,我刚刚下载了executable并自动升级了我的GIT。

© www.soinside.com 2019 - 2024. All rights reserved.