Question

dokku - cannot git push my files

  • Posted on June 14, 2014
  • iameteorAsked by iameteor

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!!!


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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: 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: <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 :)