Hi!
I’ve been trying to setup git. I’ve followed this tutorials step by step like 12 times. https://www.digitalocean.com/community/tutorials/how-to-use-git-effectively https://www.digitalocean.com/community/tutorials/how-to-install-git-on-debian-7
But I get stuck in the same step: “git push origin master” I get the following error:
fatal: ‘/testing.git’ 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.
Previously I’ve done:
git remote add origin ssh://gitadmin@xxx.xxx.xxx.xxx/testing.git git remote -v
I’ve also tried with the complete path git remote set-url origin ssh://gitadmin@xxx.xxx.xxx.xxx/home/gitadmin/git/testing.git
Without errors, but always the same error… gitadmin is a user of my server, which is a debian 7 x32
Thanks in advance.
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!
The tutorials you linked to just get you setup to use the git client. They don’t set up the server side. Check out this tutorial:
How To Set Up a Private Git Server on a VPS
Have you created the empty repository on the server you are pushing to already? On the server run:
git init --bare path/to/testing.git
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.