dokku - cannot git push my files

  • Posted June 14, 2014

fatal: [name] 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.

I tried to push files to my server with dokku installed, but this error message appeared. git remote add deploy deploy@my-server-address:dev

where deploy is a user with root privilege of my server, and I first generated a public key on my computer and I copied it to ~/.ssh/authorized_keys on my server and finally use command “cat ~/.ssh/authorized_keys | sudo sshcommand acl-add dokku ‘init’” however, this seems not working.

Any ideas?



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Is there already a repository set up on the server side with the deploy user? You’d need to run as deploy: <pre> git init --bare dev.git </pre> Check out:

For the Dokku “magic” to happen, you need to push to the dokku user: <pre> git remote add deploy dokku@my-server-address:dev git push deploy master </pre>

As message indicates, <code>fatal: [name]</code> your script didn’t defined the repository name (if defined, you may get it name in error script). Let us know if helped :)