How to push to my git repo at my VPS server?

Avatar
  • Answered
I have initiated a git repo in an empty folder at my server, like this:

$git init
Initialized empty Git repository in /home/dcacla5/public_html/website/.git/

how can I push my local GIT repo to this one I've created at my VPS server?
I know that in GIT, we do $git add origin gitURL .. but how can I know that git url I've created so that I add it to my local GIT and start pushing new updated to the website?

Notice that I will use GIT to push new updates to my website hosted at my VPS server
Avatar
Arn
Hello Hopewise, Thanks for the questions about Git with your VPS server. You will need to use a GIT client or push directly from the server using SSH. We're not sure what version of GIT you're using, but you will need to look at its documentation for specific details on its use. Check out this tutorial for an example of the instructions that you can use to push your repo: GIT tutorial. I hope this helps to answer your question, please let us know if you require any further assistance.