title: difference between .gitmodules and specifying submodules in .git/config?
body: <p>Probably very silly question, - but I've been specifying submodules up until now in .gitmodules file. It recently struck me that perhaps it's possible to just use .git/config for the same reason so I won't have to keep extraneous file in working directory? </p>
  
  <p>.git/config :</p>
  
  <pre><code>[submodule "path/to/repo"]
      url = git@github.com:username/repo.git
  </code></pre>
  
  <p>.gitmodules</p>
  
  <pre><code>[submodule "path/to/repo"]
      path = path/to/repo
      url = git@github.com:username/repo.git
  </code></pre>
  
  <p>Are these basically the same things?</p>