I’ve followed the git tutorials and the multiple-sites-in-1-droplet tutorial from DigitalOCean and now my sites are in var/www/site1 var/www/site2
Then I’m assuming I need to create my git repos inside these folders And when these git repos are created, how can I make a push from my laptop to these repos?
I guess is something like this (in my laptop git console): git remote add origin ssh://firstname.lastname@example.org/var/www/site1.git But I got a “Connect to host port 22 refused. The remote end hung up.”
Where 199.99.999.999 is my websites IP. I don’t use a domain name, because I have multiple sites and the DNS are not already set until I finish a hosting transition.
What am I doing wrong?
Thanks a lot.
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.