title: Can I add a username & password to git clone using the --recursive option (for submodules)?
body: <p>I am using git to clone a repo via https thus:</p>
  
  <pre><code>git clone https://username:password@alocation/git/repo.git
  </code></pre>
  
  <p>This is fine but it has a large number of subrepos to clone as well so I am using the <code>--recursive</code> option.</p>
  
  <p>Problem here is that for the top level it takes the username &amp; pass specified but for each sub repo it asks for the details again so I get the following:</p>
  
  <pre><code>C:&gt;git clone --recursive https://username:password@alocation/git/repo.git
  Cloning into repo...
  remote: Counting objects: 15, done.
  remote: Compressing objects: 100% (15/15), done.
  remote: Total 15 (delta 8), reused 0 (delta 0)
  Unpacking objects: 100% (15/15), done.
  Submodule 'sub1' (https://alocation/git/repo.sub1) registered for path 'sub1'
  Submodule 'sub2' (https://alocation/git/repo.sub2) registered for path 'sub2'
  Submodule 'sub3' (https://alocation/git/repo.sub3) registered for path 'sub3'
  Submodule 'sub4' (https://alocation/git/repo.sub4) registered for path 'sub4'
  Cloning into sub1...
  Username:
  Password:
  remote: Counting objects: 10, done.
  remote: Compressing objects: 100% (8/8), done.
  remote: Total 10 (delta 0), reused 0 (delta 0)
  Unpacking objects: 100% (10/10), done.
  Username:
  ..............................etc....
  </code></pre>
  
  <p>Can I give the username &amp; password separably so I don't have to enter each time.</p>
  
  <p>Obvious use case is for a deep subrepo structure like this where there are lots of files. Entering the same data for each subrepo is going to get tedious &amp; error prone. </p>