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!!!
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!
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 :)
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.