title: How to use "--path" in git config?
body: <p>It looks like Git can't resolve the <code>~/</code> path for <code>submodule</code>.</p>
  
  <p>I tried to put <code>~/foo/myproject.git</code> in <em>.gitmodules</em> as the submodule URL path, but when I try</p>
  
  <pre><code>$ git submodule init
  </code></pre>
  
  <p>I get an error saying Git can't find the repository. </p>
  
  <p>If I change it to a path like <code>/home/userA/foo/myproject.git</code>, everything works fine.</p>
  
  <p>I checked the help from Git. It looks like the <code>--path</code> can do something. </p>
  
  <p>I don't like using an absolute path because sometimes the full path is not under my control. Is there a way to use a resolved path?</p>