title: Git repository URL - SSH syntax without absolute path
body: <p>I'm running a git repository server accessible via SSH, on a custom port (let's say 12345). I have found that in this case the repository URLs need to be specified using SSH syntax:</p>
  
  <pre><code>git clone ssh://login@server.com:12345/absolute/path/to/repository
  </code></pre>
  
  <p>I'd like to setup it in such a way that it would be possible for users to clone repositories without specifying the <strong>absolute</strong> path.</p>
  
  <pre><code>git clone ssh://login@server.com:12345/repository.git
  </code></pre>
  
  <p>I have researched the topic and found the following options:</p>
  
  <ol>
  <li>Remove the custom port from the URL and make the users add it to their <code>~/.ssh/config</code> file (a last-resort workaround rather than a solution).</li>
  <li>Drop SSH and use <code>git-daemon</code> and specify its <code>--base-path</code> parameter (still a workaround...)</li>
  <li>Use an utility like <code>gitosis</code> or <code>gitolite</code> - but wouldn't it be an overkill to use it for this purpose only? Gitosis is discontinued, gitolite is a quite huge piece of software...</li>
  </ol>
  
  <p>All I want is a "prettier" SSH URL with custom port (so I can distribute the whole <code>git clone</code> command and require nothing more from the remote user). Which one of the above solutions would be the most viable in my case?</p>