Sud*_*dar 9 git git-submodules
在做git checkout-index什么时,有没有办法从子模块中复制文件?
我已经检查了git checkout-index的文档,但它没有提到子模块
既没有checkout-index.c,t/t2006-checkout-index-basic.sh也没有Documentation/git-checkout-index.txt提及子模块。这已在本期(2010 年)或本期
(2015-2016 年)
中得到确认/讨论。
所以(如评论)git submodule foreach仍然是最好的选择:
git submodule foreach --recursive 'git checkout-index'
Run Code Online (Sandbox Code Playgroud)