bc557e7f39170ed2d0fbd147b304a4f03d969f8e
git/submodule/foreach\343\201\247\343\202\250\343\203\251\343\203\274\343\202\222\347\204\241\350\246\226\343\201\227\343\201\246\347\266\232\350\241\214\343\201\231\343\202\213.md
... | ... | @@ -0,0 +1,8 @@ |
1 | +[bash - Continue looping over submodules with the "git submodule foreach" command after a non-zero exit - Stack Overflow](https://stackoverflow.com/questions/19728933/continue-looping-over-submodules-with-the-git-submodule-foreach-command-after) |
|
2 | + |
|
3 | +`git submodule foreach`コマンドは、サブモジュールに対してコマンドを実行してくれるが、エラーがあると止まってしまう。 |
|
4 | +そこで無理矢理続行する方法。 |
|
5 | + |
|
6 | +``` |
|
7 | +git submodule foreach 'npm install || :' |
|
8 | +``` |
|
... | ... | \ No newline at end of file |