title: git pull from default branch (main or master) for each git submodule
body: <p>My git repository has many submodules and some submodules' default branches are <code>main</code> and others are <code>master</code>.</p>
  <p>I would like to pull from remote default branches using a command without error.
  If all submodules are using <code>main</code> or <code>master</code>, these commands works.</p>
  <blockquote>
  <p>$ git submodule for each git pull origin master</p>
  </blockquote>
  <p>or</p>
  <blockquote>
  <p>$ git submodule for each git pull origin main</p>
  </blockquote>
  <p>But,  if mixed, I don't know how to do it.
  Does anyone know a good solution?</p>