title: Continue looping over submodules with the "git submodule foreach" command after a non-zero exit
body: <p>I have a project that contains many submodules. I want to loop over each submodule with the following command:</p>
  
  <p><code>git submodule foreach npm install</code></p>
  
  <p>And I want the script to continue looping over each submodule even if one submodule returns an error (non zero return code). Currently, a non-zero return code from running this command in any submodule will cause git to stop looping over the remaining submodules.</p>
  
  <p>Any recommendations on how to accomplish this?</p>