SmartGit明確使用子模塊更新策略no
。我如何覆蓋它以使用策略on-demand
?如何在SmartGit中爲git獲取指定--recurse-submodules策略
執行的命令由SmartGit: git.exe fetch --progress --prune --recurse-submodules=no origin
我試圖覆蓋用別名抓取命令: git config --global alias.fetch 'git fetch --recurse-submodules=on-demand'
我看到SmartGit的日誌窗口,沒有變化。
SmartGit將在Pull(非Fetch)上獲取必要的子模塊。爲什麼你想在提取時取回它們? – mstrap
,因爲git合併不會按需獲取子模塊,但會退出並出現一個錯誤,即子模塊中的提交哈希不存在並中止合併。 – Paebbels