can't deploy git repository to dokku instance (fatal: {reponame} does not appear to be a git repository)
<p>I'm trying to deploy my application which is located on my local git repo to my dokku instance on digitalocean.</p>

<p><strong>Zone file</strong></p>

<pre><code>$ORIGIN mydomain.com.
$TTL 1800
...
mydomain.com. 1800 IN A 11.22.33.44
www.mydomain.com. 1800 IN CNAME mydomain.com.
*.mydomain.com. 1800 IN A 11.22.33.44
test.mydomain.com. 1800 IN A 11.22.33.44
</code></pre>

<p>I intend to deploy my app on <code>test.mydomain.com</code></p>

<p><strong>dokku setup</strong></p>

<p>I used the dokku image on digitalocean to setup the server, which currently runns on dokku <code>v0.4.15</code>, and tried to deploy my app according to <a href="https://www.digitalocean.com/community/tutorials/how-to-use-the-dokku-one-click-install-image-to-deploy-your-app" rel="noreferrer">the guide</a> which is obviousely obsolete, however, I didn't find a more recent one.</p>

<p><strong>ssh setup</strong></p>

<p>I also set up the SSH keys and config file, so I'm able to log in to my dokku instance over SSH for both users <strong><em>root</em></strong> and <strong><em>dokku</em></strong>:</p>

<p><code>ssh {username}@test.localhome.ch</code> <code>// works</code></p>

<p><strong>local ssh config file</strong></p>

<pre><code>Host          mydomain.com test.mydomain.com
        HostName       11.22.33.44
        IdentityFile   ~/.ssh/mydomain
        PreferredAuthentications publickey
</code></pre>

<p><strong>deployment</strong></p>

<p>When I try to deploy my git repo:</p>

<pre><code>git remote add dokku dokku@test.mydomain.com:test
git push dokku master
</code></pre>

<p>it would throw me</p>

<pre><code>fatal: 'test' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
</code></pre>

<p>What did I miss?</p>

<p><strong>Edit 1</strong></p>

<p>I also ssh'ed into the server and added the dokku app</p>

<pre><code>ssh dokku@mydomain.com
dokku apps:create test
</code></pre>

<p>The app seems to have been added correctly server-side..</p>

<pre><code>dokku@mydomain:~$ dokku apps
=====&gt; My Apps
test
</code></pre>

<p>.. however, the push is still failing.</p>