title: go get using ssh instead of https (NOT on github)
body: <p>We have a private code repository accessible only through ssh/git (no https), and we would like to host our go code/modules there.</p>
  <p>First I tried:</p>
  <pre><code>git config --global url.&quot;git@code.internal.local:&quot;.insteadOf &quot;https://code.internal.local/&quot;
  </code></pre>
  <p>so, both of the following work just fine:</p>
  <ul>
  <li><code>git clone git@code.internal.local:reponame.git</code></li>
  <li><code>git clone https://code.internal.local/reponame</code></li>
  </ul>
  <p>But <code>go get code.internal.local/reponame</code> fails, as go still insists on trying https://... not git.</p>
  <pre><code>package code.internal.local/reponame: unrecognized import path &quot;code.internal.local/reponame&quot;: https fetch: Get &quot;https://code.internal.local/reponame?go-get=1&quot;: dial tcp 192.168.0.5:443: i/o timeout
  </code></pre>