Question

dokku - cannot git push my files

Posted June 14, 2014 6.9k views
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? Thanks!!!

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.

×
2 answers
As message indicates, fatal: [name] your script didn't defined the repository name (if defined, you may get it name in error script). Let us know if helped :)
Is there already a repository set up on the server side with the deploy user? You'd need to run as deploy:
git init --bare dev.git
Check out: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-git-server-on-a-vps For the Dokku "magic" to happen, you need to push to the dokku user:
git remote add deploy dokku@my-server-address:dev
git push deploy master
by Brian Rogers
This tutorial will show you how to set up a fully fledged Git server using SSH keys for authentication.
Submit an Answer